]> granicus.if.org Git - curl/commitdiff
- Yarram Sunil found out that the SocketIsDead() function performed a lot
authorDaniel Stenberg <daniel@haxx.se>
Fri, 14 Jun 2002 12:05:20 +0000 (12:05 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 14 Jun 2002 12:05:20 +0000 (12:05 +0000)
  faster on Windows when removing the 1 microsecond timeout.

lib/url.c

index dcd0065a483e9f393ed3fdaf1252d97c76c16e71..6d0b55ef432921b00e62836e1b87cc236b1f7679 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1101,7 +1101,7 @@ static bool SocketIsDead(int sock)
   FD_SET(sock,&check_set); 
 
   to.tv_sec = 0; 
-  to.tv_usec = 1
+  to.tv_usec = 0
 
   sval = select(sock + 1, &check_set, 0, 0, &to);
   if(sval == 0)