You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ws...@apache.org on 2005/05/25 01:59:02 UTC

svn commit: r178326 - /apr/apr/trunk/network_io/unix/sockopt.c

Author: wsanchez
Date: Tue May 24 16:59:02 2005
New Revision: 178326

URL: http://svn.apache.org/viewcvs?rev=178326&view=rev
Log:
clean up a comment

Modified:
    apr/apr/trunk/network_io/unix/sockopt.c

Modified: apr/apr/trunk/network_io/unix/sockopt.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/unix/sockopt.c?rev=178326&r1=178325&r2=178326&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sockopt.c (original)
+++ apr/apr/trunk/network_io/unix/sockopt.c Tue May 24 16:59:02 2005
@@ -76,11 +76,12 @@
 {
     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) {