]> granicus.if.org Git - curl/commitdiff
sockfilt.c: added some debug output to select_ws
authorMarc Hoersken <info@marc-hoersken.de>
Wed, 16 Dec 2015 14:33:36 +0000 (15:33 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Wed, 16 Dec 2015 14:33:36 +0000 (15:33 +0100)
tests/server/sockfilt.c

index 28e24eedcda444c922b948419ceb9410caf9f9c3..cf090cafb611d7b8ae647355e4b523c1121ff57e 100644 (file)
@@ -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);