You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jim Carlson <jc...@jnous.com> on 2003/04/25 04:18:35 UTC

[PATCH] apr_socket_timeout_set() quirk

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;