version 1.16 | | version 1.17 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_sockets_c = | | * static char *rcsid_sockets_c = |
* "$Id: lowlevel.c,v 1.16 2006/05/21 10:35:11 akirschbaum Exp $"; | | * "$Id: lowlevel.c,v 1.17 2006/09/02 14:25:19 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
LOG(llevDebug,"Connection closed by client\n"); | | LOG(llevDebug,"Connection closed by client\n"); |
else | | else |
{ | | { |
LOG(llevDebug,"ReadPacket got error %d, returning 0\n",WSAGetLastError()); | | LOG(llevDebug,"ReadPacket got error %d, returning -1\n",WSAGetLastError()); |
} | | } |
return -1; /* kick this user! */ | | return -1; /* kick this user! */ |
} | | } |
#else | | #else |
| | if (errno == ECONNRESET) { |
| | LOG(llevDebug, "ReadPacket got error %s, returning -1\n", strerror_local(errno)); |
| | return -1; |
| | } |
if (errno != EAGAIN && errno !=EWOULDBLOCK) { | | if (errno != EAGAIN && errno !=EWOULDBLOCK) { |
LOG(llevDebug, "ReadPacket got error %s, returning 0\n", strerror_local(errno)); | | LOG(llevDebug, "ReadPacket got error %s, returning 0\n", strerror_local(errno)); |
} | | } |
| | |
LOG(llevDebug,"Connection closed by client\n"); | | LOG(llevDebug,"Connection closed by client\n"); |
else | | else |
{ | | { |
LOG(llevDebug,"ReadPacket got error %d, returning 0\n",WSAGetLastError()); | | LOG(llevDebug,"ReadPacket got error %d, returning -1\n",WSAGetLastError()); |
} | | } |
return -1; /* kick this user! */ | | return -1; /* kick this user! */ |
} | | } |