mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 18:12:10 +03:00
do not log if accept returns EAGAIN
This commit is contained in:
1 parent
f64f0c5ba5
commit
f2e86a3df7
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user