Skip to content
Snippets Groups Projects
Commit e5cdb8c3 authored by deuce's avatar deuce
Browse files

accept() errors don't force a server recycle.

parent 15a3a0dc
No related branches found
No related tags found
No related merge requests found
...@@ -3238,12 +3238,8 @@ void DLLCALL web_server(void* arg) ...@@ -3238,12 +3238,8 @@ void DLLCALL web_server(void* arg)
} }
if(client_socket == INVALID_SOCKET) { if(client_socket == INVALID_SOCKET) {
if(ERROR_VALUE == ENOTSOCK || ERROR_VALUE == EINTR || ERROR_VALUE == EINVAL) {
lprintf(LOG_INFO,"Web Server socket closed");
break;
}
lprintf(LOG_WARNING,"!ERROR %d accepting connection", ERROR_VALUE); lprintf(LOG_WARNING,"!ERROR %d accepting connection", ERROR_VALUE);
break; continue;
} }
SAFECOPY(host_ip,inet_ntoa(client_addr.sin_addr)); SAFECOPY(host_ip,inet_ntoa(client_addr.sin_addr));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment