summaryrefslogtreecommitdiff
path: root/network_io/unix/sockopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'network_io/unix/sockopt.c')
-rw-r--r--network_io/unix/sockopt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/network_io/unix/sockopt.c b/network_io/unix/sockopt.c
index 565dced2b..4c45db156 100644
--- a/network_io/unix/sockopt.c
+++ b/network_io/unix/sockopt.c
@@ -76,11 +76,12 @@ apr_status_t apr_socket_timeout_set(apr_socket_t *sock, apr_interval_time_t t)
{
apr_status_t stat;
- /* If our timeout is positive or zero and our last timeout was
+ /* If our new timeout is non-negative and our old timeout was
* negative, then we need to ensure that we are non-blocking.
- * Conversely, if our timeout is negative and we had a positive
- * or zero timeout, we must make sure our socket is blocking.
- * We want to avoid calling fcntl more than necessary on the socket,
+ * Conversely, if our new timeout is negative and we had
+ * non-negative timeout, we must make sure our socket is blocking.
+ * We want to avoid calling fcntl more than necessary on the
+ * socket.
*/
if (t >= 0 && sock->timeout < 0) {
if (apr_is_option_set(sock, APR_SO_NONBLOCK) != 1) {