Change: [Network] Use string error messages instead of numeric error numbers that need to be looked up
This commit is contained in:
committed by
Charles Pigott
parent
65c5a64719
commit
cf8c1aa860
@@ -230,8 +230,8 @@ int NetworkHTTPSocketHandler::Receive()
|
||||
if (res == -1) {
|
||||
int err = NetworkGetLastError();
|
||||
if (err != EWOULDBLOCK) {
|
||||
/* Something went wrong... (104 is connection reset by peer) */
|
||||
if (err != 104) DEBUG(net, 0, "recv failed with error %d", err);
|
||||
/* Something went wrong... (ECONNRESET is connection reset by peer) */
|
||||
if (err != ECONNRESET) DEBUG(net, 0, "recv failed with error %s", NetworkGetErrorString(err));
|
||||
return -1;
|
||||
}
|
||||
/* Connection would block, so stop for now */
|
||||
|
||||
Reference in New Issue
Block a user