httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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

           Summary: ab.c: EINTR not checked when calling
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: major
          Priority: P2
         Component: support

Created an attachment (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

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