apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r656355 - /apr/apr/trunk/network_io/unix/sendrecv.c
Date Wed, 14 May 2008 18:46:02 GMT
Author: jim
Date: Wed May 14 11:46:02 2008
New Revision: 656355

URL: http://svn.apache.org/viewvc?rev=656355&view=rev
Log:
Bypass the call to sendfile if *len is 0. This
means we just worry about the footers.

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

Modified: apr/apr/trunk/network_io/unix/sendrecv.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sendrecv.c?rev=656355&r1=656354&r2=656355&view=diff
==============================================================================
--- apr/apr/trunk/network_io/unix/sendrecv.c (original)
+++ apr/apr/trunk/network_io/unix/sendrecv.c Wed May 14 11:46:02 2008
@@ -451,6 +451,9 @@
     }
 
     do {
+        if (!bytes_to_send) {
+            break;
+        }
         if (sock->options & APR_INCOMPLETE_WRITE) {
             apr_status_t arv;
             sock->options &= ~APR_INCOMPLETE_WRITE;



Mime
View raw message