httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
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: bugs@httpd.apache.org
        ReportedBy: dole@blekko.com


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message