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 44584] New: ab.c: EINTR not checked when calling apr_socket_connect()
Date Tue, 11 Mar 2008 20:45:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44584

           Summary: ab.c: EINTR not checked when calling
                    apr_socket_connect()
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: major
          Priority: P2
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ivoras@freebsd.org


Created an attachment (id=21654)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21654)
Patch for ab.c to check for EINTR

The ab (apache benchmark) utility creates many connections to the target web
server, but ignores the case of EINTR that can be returned by the OS's
connect() call. Because of that, it's almost unusable for generating large
loads on OSes that actually generate EINTR, like FreeBSD.

>From connect(2) manual:

     [EINTR]            The connection attempt was interrupted by the delivery
                        of a signal.  The connection will be established in
                        the background, as in the case of EINPROGRESS.

The attached patch simply adds the check for EINTR. This has been verified to
work.


-- 
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