apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject svn commit: r434080 - /apr/apr-util/trunk/memcache/apr_memcache.c
Date Wed, 23 Aug 2006 17:03:55 GMT
Author: bnicholes
Date: Wed Aug 23 10:03:54 2006
New Revision: 434080

URL: http://svn.apache.org/viewvc?rev=434080&view=rev
Log:
Use the apr'ized (APR_MAX_IOVEC_SIZE) version of IOV_MAX rather than the platform version
since this #define is not cross-platform.

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

Modified: apr/apr-util/trunk/memcache/apr_memcache.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/memcache/apr_memcache.c?rev=434080&r1=434079&r2=434080&view=diff
==============================================================================
--- apr/apr-util/trunk/memcache/apr_memcache.c (original)
+++ apr/apr-util/trunk/memcache/apr_memcache.c Wed Aug 23 10:03:54 2006
@@ -1205,9 +1205,9 @@
         conn = server_query->conn;
         ms = server_query->ms;
 
-        for (i = 0, rv = APR_SUCCESS; i < veclen && rv == APR_SUCCESS; i += IOV_MAX)
{
+        for (i = 0, rv = APR_SUCCESS; i < veclen && rv == APR_SUCCESS; i += APR_MAX_IOVEC_SIZE)
{
             rv = apr_socket_sendv(conn->sock, &(server_query->query_vec[i]),
-                                  veclen-i>IOV_MAX ? IOV_MAX : veclen-i , &written);
+                                  veclen-i>APR_MAX_IOVEC_SIZE ? APR_MAX_IOVEC_SIZE : veclen-i
, &written);
         }
 
         if (rv != APR_SUCCESS) {



Mime
View raw message