DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38861>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38861

           Summary: ApacheBench: write_request returns after EAGAIN
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
               URL: http://svn.apache.org/viewcvs.cgi/httpd/httpd/trunk/supp
                    ort/ab.c?rev=349415&view=markup
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


write_request of ab.c returns on EAGAIN so writing of data is never finished.
This can be easily reproduced by sending large post requests to a server.

The calculation of totalposted is incorrect, the to be written bytes are added
(c->rwrite) instead of the written (c->rwrote).

The attached patch fixes the EAGAIN case und makes calculation of totalposted
correct, even in the case of send failures.

Thanks a lot for an otherwise great beanchmarking tool.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to