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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to