From: Marc Hoersken Date: Wed, 16 Dec 2015 14:33:36 +0000 (+0100) Subject: sockfilt.c: added some debug output to select_ws X-Git-Tag: curl-7_47_0~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3eeb526ae4457b0e6ba098ec6003ad7105d2299;p=thirdparty%2Fcurl.git sockfilt.c: added some debug output to select_ws --- diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 28e24eedcd..cf090cafb6 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);