httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48497] New: apachebench keepalive option sends an incorrect number of requests
Date Thu, 07 Jan 2010 00:39:04 GMT

           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

Created an attachment (id=24807)
 --> (
patch to fix ab.c ton only send the correct number of requests for keepalive

ab -k -n 1

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message