aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2015-12-16 15:33:36 +0100
committerMarc Hoersken <info@marc-hoersken.de>2015-12-16 15:33:36 +0100
commitc3eeb526ae4457b0e6ba098ec6003ad7105d2299 (patch)
tree0c5c66edce46faffad8e1d5a47229a72d50ec321
parent234abd9013a9c469eadf6d6b8c8c92927cfd5edd (diff)
sockfilt.c: added some debug output to select_ws
-rw-r--r--tests/server/sockfilt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 28e24eedc..cf090cafb 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -857,6 +857,17 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds,
}
}
+ for(fds = 0; fds < nfds; fds++) {
+ if(FD_ISSET(fds, readfds))
+ logmsg("select_ws: %d is readable", fds);
+
+ if(FD_ISSET(fds, writefds))
+ logmsg("select_ws: %d is writable", fds);
+
+ if(FD_ISSET(fds, exceptfds))
+ logmsg("select_ws: %d is excepted", fds);
+ }
+
for(idx = 0; idx < wsa; idx++) {
WSAEventSelect(data[idx].wsasock, NULL, 0);
WSACloseEvent(data[idx].wsaevent);