apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48247] New: Apache HTTP server could respond HEAD message under PPC platform when using apr1.3.5
Date Fri, 20 Nov 2009 11:49:32 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48247

           Summary: Apache HTTP server could respond HEAD message under
                    PPC platform when using apr1.3.5
           Product: APR
           Version: 1.3.5
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: dongliqian@gmail.com


Created an attachment (id=24571)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24571)
The patch file for apr-1.3.5/network_io/sockets.c

Problem description:
The issue occurred when I used Apache HTTP server 2.2.11 and apr1.3.5 under PPC
platform. The Apache HTTP server couldn't respond the HEAD message under
following environment:
1. Apache HTTP server is configured with multiple ports.
2. When compiling APR, with APR_O_NONBLOCK_INHERITED enabled.
3. Apache HTTP server is running on PPC platform.

Root Cause:
After investigation, I found that there is a small bug when accepting a new
conneciton. 
In function apr_socket_accept of file apr-1.3.5/network_io/sockets.c, if the
new socket finds its father socket is in non-blocking mode, it calls
apr_set_option to change the non-blocking mode. However, the function
apr_set_option only changes the value in struct apr_socket_t, and the real
non-blocking mode of the socket has not been modified. So I think we'd better
call function apr_socket_opt_set to set the real non-blocking mode of the new
socket.

Please see attached for the patched file.

Thanks,
Tony

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


Mime
View raw message