Joe Higton
99bcf11768
FIX: The error handler is not called on disconnect
Using the disconnect test showed the agent was silently closing on disconnect
преди 10 години
Joe Higton
7ddad76b85
Early stab at disconnect handling test
преди 10 години
Joe Higton
912db95c0a
FIX: waiting for worker fireup was making the test slow
Dodging the race condition with a sleep was fine, but we slept
for a whole second which was longer than this test takes to run!
I've scaled the sleep down to 250 miliseconds and increased the tries.
Even this is probably excessively long but now the test is fast agin.
преди 10 години
Joe Higton
2f72b28d76
FIX: waiting for worker fireup was making the test slow
Dodging the race condition with a sleep was fine, but we slept
for a whole second which was longer than this test takes to run!
I've scaled the sleep down to 250 miliseconds and increased the tries.
Even this is probably excessively long but now the test is fast agin.
преди 10 години
Joe Higton
0a4489d1fe
Fixed and improved Work() without Ready() test:
* FIX: committed test froze
* FIX: committed test had a race condition!
* Added properly handled panic test
* Timeouts so that these tests should fail now if something goes wrong instead of failing.
преди 10 години
draxil
6688c29c37
Enahanced Work() without Ready() behaviour:
Now if you try to call Work() without calling Ready(), it will trigger an attempt to run Ready(), and will only panic if there is an error.
преди 10 години
Joe Higton
24e93b4a2c
More helpful panic if you call Work() before you call Ready()
преди 10 години
Damian Gryski
7229235a4f
Use %v instead of %V, which is not a valid Printf verb
преди 10 години
Damian Gryski
ad0d49dcb2
Use fmt.Errorf() instead of errors.New(fmt.Sprintf())
преди 10 години
Xing Xing
76c76995d5
removed ErrLostConn from worker
преди 10 години
Xing Xing
f880354a61
type assertion with *net.OpError
преди 10 години
Xing Xing
0a6bacbe82
SUBMIT_JOB_SCHED is deprecated, worker.Immediately should be removed.
преди 10 години
Sam Grimee
221e11861f
keep already received data if not enough to decode
преди 10 години
Sam Grimee
885609309c
Continue reading incoming data until enough rcvd
This fixes the case of a large packet being received, the current code stops processing as soon as >12 bytes are received,
преди 10 години
Xing Xing
87631cc2e5
go fmt & better examples
преди 10 години
Xing Xing
76196899f8
fxied issue #20
преди 10 години
Xing Xing
47d03a8bb1
fixed WORK_STATUS package size
преди 10 години
jake
94b00affec
Bring back ability to get function name
преди 10 години
Alex Zylman
90f2fd21e8
expose job handle/uniqueId
преди 10 години
Xing Xing
d282ef337a
benchmark for encoding/decoding
преди 10 години
Xing Xing
9f96247384
fixed the worker's testing cases
преди 10 години
Xing Xing
bf25cc1728
a better documents for the client package
преди 10 години
Xing Xing
59941371fb
Something should not display in documents, disabled.
преди 10 години
Xing Xing
18791d0490
a better documents
преди 10 години
Xing Xing
298edadfa6
a better doc
преди 10 години
Xing Xing
02e6bfebcb
prepared for documentation
преди 10 години
Xing Xing
ddba5ab2f2
blocking on GRAB_JOB instead of executing blocked
преди 10 години
Xing Xing
fbfe7c0b22
The limitation param was removed
преди 10 години
Xing Xing
7db97fc31d
package's test-case added
преди 10 години
Xing Xing
bcff8f7e0d
go fmt
преди 10 години
Xing Xing
2da5f29cd1
refactoring complated
преди 10 години
Xing Xing
2ee2be0891
go fmt
преди 10 години
Xing Xing
2b4cc002d1
grab, no_job, pre_sleep, noop
преди 10 години
Xing Xing
a33a6cde32
complated in/out-pack name's refactoring
преди 10 години
Xing Xing
e9c29799fb
refactoring worker side data package
преди 10 години
Xing Xing
e5179e3b5b
started refactoring worker
преди 11 години
Xing Xing
124e686699
go fmt
преди 11 години
mikespook
8e009be940
#14 fixed
преди 11 години
Paul Mach
f3b4013e2b
Update and Receive status correctly
преди 11 години
mikespook
568c70b083
#12 fixed
преди 11 години
miraclesu
9549d98a7c
Close friendly
преди 11 години
mikespook
aa9b5e9598
Start working loop first
преди 11 години
mikespook
d927d374de
fixed the import path
преди 11 години
suchj
af47a3228f
retrun data slice with correct index
преди 11 години
suchj
37d7888544
fixed job limit bug
преди 11 години
suchj
36ba74f0dc
A better read method
преди 11 години
mikespook
6834e94fc5
take a break for reading data
преди 11 години
mikespook
0df61bcd82
fixed the border value
преди 11 години
mikespook
027ca1c67c
too few data to unpack, read more
преди 11 години
mikespook
63480d6547
Check the length of data, if less 12, read more
преди 11 години