Return-Path: Delivered-To: apmail-apr-bugs-archive@www.apache.org Received: (qmail 88236 invoked from network); 6 Jan 2010 07:30:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2010 07:30:04 -0000 Received: (qmail 97978 invoked by uid 500); 6 Jan 2010 07:30:04 -0000 Delivered-To: apmail-apr-bugs-archive@apr.apache.org Received: (qmail 97946 invoked by uid 500); 6 Jan 2010 07:30:04 -0000 Mailing-List: contact bugs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apr.apache.org Delivered-To: mailing list bugs@apr.apache.org Received: (qmail 97938 invoked by uid 99); 6 Jan 2010 07:30:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2010 07:30:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2010 07:30:02 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 191BC234C04C; Tue, 5 Jan 2010 23:29:40 -0800 (PST) From: bugzilla@apache.org To: bugs@apr.apache.org Subject: DO NOT REPLY [Bug 48247] Apache HTTP server could not respond HEAD message under PPC platform when using apr1.3.5 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: APR X-Bugzilla-Component: APR X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dongliqian@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@apr.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Priority Platform Version Severity In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20100106072941.191BC234C04C@brutus.apache.org> Date: Tue, 5 Jan 2010 23:29:40 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=48247 tony dong changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |P2 Platform|All |PC Version|1.3.5 |HEAD Severity|critical |normal --- Comment #1 from tony dong 2010-01-05 23:29:37 UTC --- 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