Client wrongly detects disconnection from server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman Java |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In GearmanNIOJobSe
int bytesRead = serverConnectio
if (bytesRead >= 0) {
...
} else {
if (isOpen())
}
I believe this is incorrect.
the documentation of ReadableByteCha
in other words, the client disconnects the connection just because its reading faster than the server sends.
this is unlikely to happen if you are working locally, but can (and does) happen otherwise.
Based on the doc, if the channel gets closed - a ClosedChannelEx
* http://
I pushed a fix to my reconnect-bug branch, so far it seems to work well.