Use non-blocking sockets for UDP

This commit is contained in:
Vladimir Dubrovin committed 2026-06-02 13:43:56 +03:00
1 parent ab11e6c4a3
commit fd7b25bf06
3 files changed
+14 -2

No files matched your search

+2 -2
View File
@@ -147,9 +147,9 @@ void * dnsprchild(struct clientparam* param) {
}
else {
#ifdef _WIN32
/* ioctlsocket(param->remsock, FIONBIO, &ul); */
ioctlsocket(param->remsock, FIONBIO, &ul);
#else
/* fcntl(param->remsock,F_SETFL,O_NONBLOCK); */
fcntl(param->remsock, F_SETFL, O_NONBLOCK | fcntl(param->remsock, F_GETFL));
#endif
}