You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2018/03/04 22:56:42 UTC

svn commit: r1825839 - in /httpd/httpd/branches/2.4.x: CHANGES support/ab.c

Author: covener
Date: Sun Mar  4 22:56:42 2018
New Revision: 1825839

URL: http://svn.apache.org/viewvc?rev=1825839&view=rev
Log:
ab: Fix send length calculation 

... for the non-blocking connect case introduced in 2.4.30. 

Submitted By: jorton
Reviewed By: ylavic, druggeri, covener



Modified:
    httpd/httpd/branches/2.4.x/CHANGES
    httpd/httpd/branches/2.4.x/support/ab.c

Modified: httpd/httpd/branches/2.4.x/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/CHANGES?rev=1825839&r1=1825838&r2=1825839&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/CHANGES [utf-8] (original)
+++ httpd/httpd/branches/2.4.x/CHANGES [utf-8] Sun Mar  4 22:56:42 2018
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.4.32
 
+  *) ab: Fix send length calculation for the non-blocking connect case
+     introduced in 2.4.30.  [Joe Orton]
+
 Changes with Apache 2.4.31
 
   *) mod_proxy_fcgi: Add the support for mod_proxy's flushpackets and flushwait

Modified: httpd/httpd/branches/2.4.x/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/support/ab.c?rev=1825839&r1=1825838&r2=1825839&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/support/ab.c (original)
+++ httpd/httpd/branches/2.4.x/support/ab.c Sun Mar  4 22:56:42 2018
@@ -780,6 +780,7 @@ static void write_request(struct connect
             c->rwrite = reqlen;
             if (send_body)
                 c->rwrite += postlen;
+            l = c->rwrite;
         }
         else if (tnow > c->connect + aprtimeout) {
             printf("Send request timed out!\n");