Graham Barr
7bcc4de76f
Do not ignore write errors
hace 10 años
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
hace 10 años
Graham Barr
3e556edb2d
When a job completes, remove its handler
hace 10 años
Xing Xing
5334b50533
fixed #34
hace 10 años
Xing Xing
f880354a61
type assertion with *net.OpError
hace 10 años
Xing Xing
45a9d7c3e5
fixed #31
hace 10 años
Xing Xing
87631cc2e5
go fmt & better examples
hace 10 años
Xing Xing
76196899f8
fxied issue #20
hace 10 años
Xing Xing
bf25cc1728
a better documents for the client package
hace 10 años
Xing Xing
02e6bfebcb
prepared for documentation
hace 10 años
Xing Xing
c8f2f5085c
race is bad, how should we do?
hace 10 años
Xing Xing
e5179e3b5b
started refactoring worker
hace 11 años
Xing Xing
124e686699
go fmt
hace 11 años
Xing Xing
358c8c4af0
processed ERROR package
hace 11 años
Xing Xing
4997e30a77
runabled 0.2
hace 11 años
Xing Xing
e5c30068cd
0.2 refactoring begining
hace 11 años
Paul Mach
5e215b9257
Remove depenance on external libs for unique id
hace 11 años
mikespook
8e009be940
#14 fixed
hace 11 años
Paul Mach
f3b4013e2b
Update and Receive status correctly
hace 11 años
Xing Xing
011c3253f7
issue 'use of closed network connection' of client fixed
hace 11 años
mikespook
568c70b083
#12 fixed
hace 11 años
mikespook
7a8a5d4a6a
for issue #10 ; an IdGenerator interface, use bson.ObjectId as default
hace 11 años
Ingo Oeser
af4035284d
do not generate unique id on background submission
hace 11 años
Xing Xing
6619b9a10e
move the auto-inc into the global
hace 11 años
mikespook
af05460727
fixed the infinite loop of client
hace 11 años
mikespook
16a965f52d
An infinite loop ... :(
hace 11 años
mikespook
c00234ba9a
Refactoring the client api
hace 11 años
mikespook
dbc06bf540
start refactoring...
hace 11 años
mikespook
d6c6bfe9f0
moved to github
hace 11 años
mikespook
624c61519f
using time.After instead of a separate goroutine
hace 12 años
mikespook
a8f7c8ab9d
Read a empty data means connection error
hace 12 años
mikespook
f14964bc81
add timeout to client.Do
hace 12 años
mikespook
2960cb9953
refacotring worker's code
--HG--
branch : 0.1
rename : worker/jobagent.go => worker/agent.go
rename : worker/workerjob.go => worker/job.go
hace 12 años
mikespook
563af037cb
fixed client:Job.Encode
--HG--
branch : 0.1
hace 12 años
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
hace 12 años