]> granicus.if.org Git - apache/commitdiff
ab: Fix send length calculation
authorEric Covener <covener@apache.org>
Sun, 4 Mar 2018 22:56:42 +0000 (22:56 +0000)
committerEric Covener <covener@apache.org>
Sun, 4 Mar 2018 22:56:42 +0000 (22:56 +0000)
... for the non-blocking connect case introduced in 2.4.30.

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

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1825839 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/ab.c

diff --git a/CHANGES b/CHANGES
index b0ab14e4ae4ed45c637f8db36f12f0b91c9adb0a..88f7db9e3b7fed410df13253ebb6e2782c658e9c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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
index 39dc407bda59273800aee6a808b2c69fb88fd944..f1020c653a209d8525be07d3974e16a749c8fd8a 100644 (file)
@@ -780,6 +780,7 @@ static void write_request(struct connection * c)
             c->rwrite = reqlen;
             if (send_body)
                 c->rwrite += postlen;
+            l = c->rwrite;
         }
         else if (tnow > c->connect + aprtimeout) {
             printf("Send request timed out!\n");