From: Daniel Stenberg Date: Fri, 14 Jun 2002 12:05:20 +0000 (+0000) Subject: - Yarram Sunil found out that the SocketIsDead() function performed a lot X-Git-Tag: curl-7_10~175 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b34d4e1f750c2b7db466e85abe582191f439109;p=curl - Yarram Sunil found out that the SocketIsDead() function performed a lot faster on Windows when removing the 1 microsecond timeout. --- diff --git a/lib/url.c b/lib/url.c index dcd0065a4..6d0b55ef4 100644 --- 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)