mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
fix handing of return 0 from recv in new connections (fixes #506 ?)
This commit is contained in:
@@ -489,7 +489,8 @@ httpd_thread(void *arg)
|
|||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
logger_log(httpd->logger, LOGGER_DEBUG, "client closed connection on socket %d",
|
logger_log(httpd->logger, LOGGER_DEBUG, "client closed connection on socket %d",
|
||||||
connection->socket_fd);
|
connection->socket_fd);
|
||||||
break;
|
httpd_remove_connection(httpd, connection, 0);
|
||||||
|
continue;
|
||||||
} else if (ret == -1) {
|
} else if (ret == -1) {
|
||||||
if (errno == SOCKET_ERRORNAME(EAGAIN) || errno == SOCKET_ERRORNAME(EWOULDBLOCK) || errno == SOCKET_ERRORNAME(EINTR)) {
|
if (errno == SOCKET_ERRORNAME(EAGAIN) || errno == SOCKET_ERRORNAME(EWOULDBLOCK) || errno == SOCKET_ERRORNAME(EINTR)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user