apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r349992 - /apr/apr-util/trunk/memcache/apr_memcache.c
Date Wed, 30 Nov 2005 17:14:48 GMT
Author: pquerna
Date: Wed Nov 30 09:14:45 2005
New Revision: 349992

URL: http://svn.apache.org/viewcvs?rev=349992&view=rev
Log:
Set the connection timeout, before we try to connect, otherwise we use the default timeout,
which is too long for memcached.

Modified:
    apr/apr-util/trunk/memcache/apr_memcache.c

Modified: apr/apr-util/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/memcache/apr_memcache.c?rev=349992&r1=349991&r2=349992&view=diff
==============================================================================
--- apr/apr-util/trunk/memcache/apr_memcache.c (original)
+++ apr/apr-util/trunk/memcache/apr_memcache.c Wed Nov 30 09:14:45 2005
@@ -251,12 +251,12 @@
         return rv;
     }
 
-    rv = apr_socket_connect(conn->sock, sa);
+    rv = apr_socket_timeout_set(conn->sock, 1 * APR_USEC_PER_SEC);
     if (rv != APR_SUCCESS) {
         return rv;
     }
 
-    rv = apr_socket_timeout_set(conn->sock, 1 * APR_USEC_PER_SEC);
+    rv = apr_socket_connect(conn->sock, sa);
     if (rv != APR_SUCCESS) {
         return rv;
     }



Mime
View raw message