From 120ceb930196ac33904e97fa8e14c1c7b3e251b3 Mon Sep 17 00:00:00 2001 From: Eric Covener <covener@apache.org> Date: Sun, 4 Mar 2018 22:56:42 +0000 Subject: [PATCH] ab: Fix send length calculation ... 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 | 3 +++ support/ab.c | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index b0ab14e4ae..88f7db9e3b 100644 --- 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 diff --git a/support/ab.c b/support/ab.c index 39dc407bda..f1020c653a 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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"); -- 2.40.0