Skip to content

Commit 8c4d3f2

Browse files
committed
Disabling error on exceptfds to support and fixing select timeout
1 parent 0861b4e commit 8c4d3f2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

contrib/win32/win32compat/w32fd.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ w32_select(int fds, w32_fd_set* readfds, w32_fd_set* writefds, w32_fd_set* excep
517517
memset(&write_ready_fds, 0, sizeof(w32_fd_set));
518518

519519
if (timeout)
520-
timeout_ms = timeout->tv_sec * 100 + timeout->tv_usec / 1000;
520+
timeout_ms = timeout->tv_sec * 1000 + timeout->tv_usec / 1000;
521521

522522
if (fds > MAX_FDS) {
523523
errno = EINVAL;
@@ -531,12 +531,13 @@ w32_select(int fds, w32_fd_set* readfds, w32_fd_set* writefds, w32_fd_set* excep
531531
return -1;
532532
}
533533

534-
if (exceptfds) {
535-
errno = EOPNOTSUPP;
536-
debug("select - ERROR: exceptfds not supported");
537-
DebugBreak();
538-
return -1;
539-
}
534+
/* TODO - see if this needs to be supported */
535+
//if (exceptfds) {
536+
// errno = EOPNOTSUPP;
537+
// debug("select - ERROR: exceptfds not supported");
538+
// DebugBreak();
539+
// return -1;
540+
//}
540541

541542
if (readfds) {
542543
for (i = 0; i < fds; i++)

0 commit comments

Comments
 (0)