fix missed fd_set

This commit is contained in:
John
2024-03-27 06:54:59 +01:00
parent 866a71f042
commit 033586c63c
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -160,6 +160,8 @@ int tcpKeepAliveInterval) {
FD_ZERO(&writefds);
FD_ZERO(&exceptfds);
FD_SET(sfd, &readfds);
FD_SET(sfd, &writefds);
FD_SET(sfd, &exceptfds);
#ifdef HAVE_PSELECT
ret = pselect(sfd + 1, &readfds, &writefds, &exceptfds, &tdiff, nullptr);
#else