Skip to content
Snippets Groups Projects
Commit 5bea6c6b authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If socket is closed while in sess_sendbuf(), don't log a warning message

... with a socket descriptor value of -1.
parent cca3e633
No related branches found
No related tags found
No related merge requests found
Pipeline #5271 passed
......@@ -690,7 +690,7 @@ static int sess_sendbuf(http_session_t *session, const char *buf, size_t len, BO
else if(ERROR_VALUE==EPIPE)
lprintf(LOG_NOTICE,"%04d Unable to send to peer",session->socket);
#endif
else
else if(session->socket != INVALID_SOCKET)
lprintf(LOG_WARNING,"%04d !ERROR %d sending on socket",session->socket,ERROR_VALUE);
*failed=TRUE;
return(sent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment