apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Carlson <jcarl...@jnous.com>
Subject [PATCH] apr_socket_timeout_set() quirk
Date Fri, 25 Apr 2003 02:18:35 GMT
Howdy,
   This looks like a typo to me.  Or am I missing something?

Jim


--- network_io/unix/sockopt.c.orig	2003-04-24 19:16:25.000000000 -0700
+++ network_io/unix/sockopt.c	2003-04-24 19:16:51.000000000 -0700
@@ -138,7 +138,7 @@
      /* must disable the incomplete read support if we change to a
       * blocking socket.
       */
-    if (t == 0) {
+    if (t == -1) {
          sock->netmask &= ~APR_INCOMPLETE_READ;
      }
      sock->timeout = t;


Mime
View raw message