On Sun, Mar 4, 2018 at 8:27 PM, li...@rhsoft.net <li...@rhsoft.net> wrote:
>
> that pacthfile is unuseable for rpmbuild
>
> + echo 'Patch #4 (httpd-2.4.x-ab-nonblock_length.patch):'
> Patch #4 (httpd-2.4.x-ab-nonblock_length.patch):
> + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
> can't find file to patch at input line 5

It requires -p0 (instead of -p1).
Nevermind, does the attached one work?
Index: 2.4.x/support/ab.c
===================================================================
--- 2.4.x/support/ab.c	(revision 1825829)
+++ 2.4.x/support/ab.c	(working copy)
@@ -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");

Reply via email to