aboutsummaryrefslogtreecommitdiff
path: root/networks/plaintext_buffered.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-08-12 23:45:35 -0400
committerTest_User <hax@andrewyu.org>2024-08-12 23:45:35 -0400
commit4b211d19da3f6a35e87fcb350527d9a992449b41 (patch)
tree275859ca4359e53353e9ce2f48c6ee9f87aaa802 /networks/plaintext_buffered.c
parent770cb2f15a96693cce0ba56acaf8dcee6b7339a1 (diff)
downloadhaxircd-4b211d19da3f6a35e87fcb350527d9a992449b41.tar.gz
haxircd-4b211d19da3f6a35e87fcb350527d9a992449b41.zip
Improve accept retrying conditions
Diffstat (limited to 'networks/plaintext_buffered.c')
-rw-r--r--networks/plaintext_buffered.c2
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;