diff options
author | Test_User <hax@andrewyu.org> | 2024-08-12 23:45:35 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-08-12 23:45:35 -0400 |
commit | 4b211d19da3f6a35e87fcb350527d9a992449b41 (patch) | |
tree | 275859ca4359e53353e9ce2f48c6ee9f87aaa802 /networks/plaintext_buffered.c | |
parent | 770cb2f15a96693cce0ba56acaf8dcee6b7339a1 (diff) | |
download | haxircd-4b211d19da3f6a35e87fcb350527d9a992449b41.tar.gz haxircd-4b211d19da3f6a35e87fcb350527d9a992449b41.zip |
Improve accept retrying conditions
Diffstat (limited to 'networks/plaintext_buffered.c')
-rw-r--r-- | networks/plaintext_buffered.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networks/plaintext_buffered.c b/networks/plaintext_buffered.c index 14fc1ea..59e3a2f 100644 --- a/networks/plaintext_buffered.c +++ b/networks/plaintext_buffered.c @@ -302,7 +302,7 @@ int plaintext_buffered_accept(int listen_fd, void **handle, struct string *addr) int con_fd; do { con_fd = accept(listen_fd, (struct sockaddr*)&address, &address_len); - } while (con_fd == -1 && (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK || errno == ENETDOWN || errno == EPROTO || errno == ENOPROTOOPT || errno == EHOSTDOWN || errno == ENONET || errno == EHOSTUNREACH || errno == EOPNOTSUPP || errno == ENETUNREACH)); + } while (con_fd == -1 && RETRY_ACCEPT); if (con_fd == -1) return -1; |