do not log if accept returns EAGAIN

This commit is contained in:
yrutschle committed 2025-08-26 22:17:58 +02:00
1 parent f64f0c5ba5
commit f2e86a3df7
1 file changed
+1
+1
View File
@@ -165,6 +165,7 @@ struct connection* accept_new_connection(struct listen_endpoint* endpoint, struc
print_message(msg_fd, "accepting from %d\n", listen_socket);
in_socket = accept(listen_socket, 0, 0);
if ((res == -1) && (errno == EAGAIN)) return NULL; /* Do not log if we're just retring next iteration */
CHECK_RES_RETURN(in_socket, "accept", NULL);
res = set_nonblock(in_socket);