]> sjero.net Git - wget/commitdiff
[svn] Doc fix.
authorhniksic <devnull@localhost>
Mon, 4 Jul 2005 01:07:59 +0000 (18:07 -0700)
committerhniksic <devnull@localhost>
Mon, 4 Jul 2005 01:07:59 +0000 (18:07 -0700)
src/connect.c

index b85998c22ceac441ea80e50498a5f3df30dec438..7d20f0793d8f19671daef0be2bba433cba195b95 100644 (file)
@@ -665,11 +665,12 @@ test_socket_open (int sock)
   to.tv_sec = 0;
   to.tv_usec = 1;
 
-  /* If we get a timeout, then that means still connected */
   if (select (sock + 1, &check_set, NULL, NULL, &to) == 0)
-    /* Connection is valid (not EOF), so continue */
+    /* We got a timeout, it means we're still connected. */
     return true;
   else
+    /* Read now would not wait, it means we have either pending data
+       or EOF/error. */
     return false;
 }
 \f