always read pending data; fixes #129
commita9d436718ad9d8c60a250dd0269feac5f1287a52
authorKeith Rarick <kr@xph.us>
Fri, 31 Aug 2012 21:38:54 +0000 (31 14:38 -0700)
committerKeith Rarick <kr@xph.us>
Fri, 31 Aug 2012 21:38:54 +0000 (31 14:38 -0700)
treeae5102eca3b39354958d4255c74467af71c19f38
parent236c669c250e34d7dea5ef9aedc01da68ebdb90a
always read pending data; fixes #129

From the kqueue man page: “It is possible for EOF to be returned
(indicating the con- nection is gone) while there is still data
pending in the socket buffer.”
prot.c
sock-bsd.c
sock-linux.c