https://issues.apache.org/bugzilla/show_bug.cgi?id=48497

           Summary: apachebench keepalive option sends an incorrect number
                    of requests
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=24807)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24807)
patch to fix ab.c ton only send the correct number of requests for keepalive
sessions

ab -k -n 1 http://www.example.com/

will send more than one GET request. The problem is worse for higher
concurrency levels.  The issue is how the started connections is counted.

I first discovered this watching a tcp dump of ab at work. It would
consistently send one extra GET request per connection and then close the tcp
session before the reply would return. Resulting in a TCP RST packet. 

I'm attaching a patch that actually simplifies the accounting of started
requests and prevents apachebench from starting more requests than it should.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to