Fix a case where an EOF could be interpreted a previous errno (often ignorable).
This commit is contained in:
parent
72745c2b88
commit
24914876eb
|
@ -254,7 +254,7 @@ read_packet(rb_fde_t * F, void *data)
|
||||||
|
|
||||||
if(length <= 0)
|
if(length <= 0)
|
||||||
{
|
{
|
||||||
if(rb_ignore_errno(errno))
|
if(length < 0 && rb_ignore_errno(errno))
|
||||||
{
|
{
|
||||||
rb_setselect(client_p->localClient->F,
|
rb_setselect(client_p->localClient->F,
|
||||||
RB_SELECT_READ, read_packet, client_p);
|
RB_SELECT_READ, read_packet, client_p);
|
||||||
|
|
Loading…
Reference in New Issue