From c3eeb526ae4457b0e6ba098ec6003ad7105d2299 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Wed, 16 Dec 2015 15:33:36 +0100 Subject: sockfilt.c: added some debug output to select_ws --- tests/server/sockfilt.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); -- cgit v1.2.3