From 2686b2dd93d6e08ea3813e9420e1216fa921f5a3 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 3 Jul 2005 18:07:59 -0700 Subject: [PATCH] [svn] Doc fix. --- src/connect.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connect.c b/src/connect.c index b85998c2..7d20f079 100644 --- a/src/connect.c +++ b/src/connect.c @@ -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; } -- 2.39.2