diff options
author | wsanchez <wsanchez@13f79535-47bb-0310-9956-ffa450edef68> | 2005-05-24 23:59:02 +0000 |
---|---|---|
committer | wsanchez <wsanchez@13f79535-47bb-0310-9956-ffa450edef68> | 2005-05-24 23:59:02 +0000 |
commit | 890be50a7ff6be37f99518914ddbdd1b23d7cd68 (patch) | |
tree | c1345bfb4069bdf4850acbb386accaed12f2a4ac | |
parent | e3e7e6e79303631a9d79379e88836f964dea7293 (diff) | |
download | libapr-890be50a7ff6be37f99518914ddbdd1b23d7cd68.tar.gz |
clean up a comment
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@178326 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | network_io/unix/sockopt.c | 9 |
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) { |