Graham Barr
7bcc4de76f
Do not ignore write errors
пре 10 година
Graham Barr
d82da8fd71
Avoid read channel corruption when response size > bufferSize
When receiving a response, what was happening
1. Read bufferSize and it gets assigned to leftdata
2. Read another bufferSize
3. 2 buffers get appended, but leftdata still points to first buffer
4. Process data buffer which contains only complete responses
5. Back to ReadLoop, but leftdata still points to first incomplete buffer
causing corrupt data to be processed
Solution is to make leftdata nil once we have merged it with the second buffer
пре 10 година
Graham Barr
3e556edb2d
When a job completes, remove its handler
пре 10 година
Xing Xing
5334b50533
fixed #34
пре 10 година
Xing Xing
f880354a61
type assertion with *net.OpError
пре 10 година
Xing Xing
45a9d7c3e5
fixed #31
пре 10 година
Xing Xing
87631cc2e5
go fmt & better examples
пре 10 година
Xing Xing
76196899f8
fxied issue #20
пре 10 година
Xing Xing
bf25cc1728
a better documents for the client package
пре 10 година
Xing Xing
02e6bfebcb
prepared for documentation
пре 10 година
Xing Xing
c8f2f5085c
race is bad, how should we do?
пре 10 година
Xing Xing
e5179e3b5b
started refactoring worker
пре 11 година
Xing Xing
124e686699
go fmt
пре 11 година
Xing Xing
358c8c4af0
processed ERROR package
пре 11 година
Xing Xing
4997e30a77
runabled 0.2
пре 11 година
Xing Xing
e5c30068cd
0.2 refactoring begining
пре 11 година
Paul Mach
5e215b9257
Remove depenance on external libs for unique id
пре 11 година
mikespook
8e009be940
#14 fixed
пре 11 година
Paul Mach
f3b4013e2b
Update and Receive status correctly
пре 11 година
Xing Xing
011c3253f7
issue 'use of closed network connection' of client fixed
пре 11 година
mikespook
568c70b083
#12 fixed
пре 11 година
mikespook
7a8a5d4a6a
for issue #10 ; an IdGenerator interface, use bson.ObjectId as default
пре 11 година
Ingo Oeser
af4035284d
do not generate unique id on background submission
пре 11 година
Xing Xing
6619b9a10e
move the auto-inc into the global
пре 11 година
mikespook
af05460727
fixed the infinite loop of client
пре 11 година
mikespook
16a965f52d
An infinite loop ... :(
пре 11 година
mikespook
c00234ba9a
Refactoring the client api
пре 11 година
mikespook
dbc06bf540
start refactoring...
пре 11 година
mikespook
d6c6bfe9f0
moved to github
пре 11 година
mikespook
624c61519f
using time.After instead of a separate goroutine
пре 12 година
mikespook
a8f7c8ab9d
Read a empty data means connection error
пре 12 година
mikespook
f14964bc81
add timeout to client.Do
пре 12 година
mikespook
2960cb9953
refacotring worker's code
--HG--
branch : 0.1
rename : worker/jobagent.go => worker/agent.go
rename : worker/workerjob.go => worker/job.go
пре 12 година
mikespook
563af037cb
fixed client:Job.Encode
--HG--
branch : 0.1
пре 12 година
mikespook
7614c2678a
make a new branch, refactoring codes
--HG--
branch : 0.1
rename : gearman/client/client.go => client/client.go
rename : gearman/client/client_test.go => client/client_test.go
rename : gearman/client/clientjob.go => client/job.go
rename : gearman/gearman.go => common/gearman.go
rename : gearman/worker/jobagent.go => worker/jobagent.go
rename : gearman/worker/worker.go => worker/worker.go
rename : gearman/worker/worker_test.go => worker/worker_test.go
rename : gearman/worker/workerjob.go => worker/workerjob.go
пре 12 година