Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E45F910AAC for ; Tue, 26 Nov 2013 21:50:12 +0000 (UTC) Received: (qmail 19154 invoked by uid 500); 26 Nov 2013 21:50:12 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 19080 invoked by uid 500); 26 Nov 2013 21:50:12 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 19072 invoked by uid 99); 26 Nov 2013 21:50:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Nov 2013 21:50:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ohauer@gmx.de designates 212.227.15.19 as permitted sender) Received: from [212.227.15.19] (HELO mout.gmx.net) (212.227.15.19) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Nov 2013 21:50:04 +0000 Received: from [192.168.0.100] ([87.139.233.65]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MN604-1VjDaN2x9E-006cYe for ; Tue, 26 Nov 2013 22:49:39 +0100 Message-ID: <52951773.70403@gmx.de> Date: Tue, 26 Nov 2013 22:49:39 +0100 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Issue with apr-1.5.0 on FreeBSD 10beta3 References: <528E8DB1.9040803@gmx.de> <5291FF18.8090801@gmx.de> <5293C0F2.6080705@gmx.de> <5294B726.6000100@gmx.de> <52950C43.5000601@kippdata.de> In-Reply-To: <52950C43.5000601@kippdata.de> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:PW9wWmRErSnq1PeeD9XjsQjKl5ii2eUzfNVBUjt8ARybiuVe+J0 VkLrRNl4Wc7iBIaU3yxWd+397s9+uibqqSKNsjaSN/uNEzv213JtDykug0UpZHCV7eFqrtX 9DyCxb6hrqUv3LZcuOj8p8qDZikY2DRyU2Q+XHL2N/mr4+mnn6q8PVWPjwFDJuhOnHAFXyR gGUW5o8p713XWJ1sPvWyQ== X-Virus-Checked: Checked by ClamAV on apache.org On 2013-11-26 22:01, Rainer Jung wrote: > On 26.11.2013 15:58, olli hauer wrote: >> On 2013-11-25 23:25, Jeff Trawick wrote: > >>> See if this brings any happiness: >>> >>> Index: network_io/unix/sockets.c >>> =================================================================== >>> --- network_io/unix/sockets.c (revision 1545394) >>> +++ network_io/unix/sockets.c (working copy) >>> @@ -273,7 +273,7 @@ >>> #endif /* TCP_NODELAY_INHERITED */ >>> #if APR_O_NONBLOCK_INHERITED >>> if (apr_is_option_set(sock, APR_SO_NONBLOCK) == 1) { >>> - apr_set_option(*new, APR_SO_NONBLOCK, 1); >>> + /* apr_set_option(*new, APR_SO_NONBLOCK, 1); */ >>> } >>> #endif /* APR_O_NONBLOCK_INHERITED */ >> >> >> I can confirm after removing the line in apr-1.5.0 apache24 no longer hangs. >> (tested with apache-2.4.6 / 2.4.7) >> >> I seen now why this is triggered by comparing apr.h after `./configure', >> >>> grep APR_O_NONBLOCK_INHERITED work/apr-1.4.8/include/apr.h >> ./work/apr-1.4.8/include/apr.h:#define APR_O_NONBLOCK_INHERITED 0 >> >>> grep APR_O_NONBLOCK_INHERITED work/apr-1.5.0/include/apr.h >> work/apr-1.5.0/include/apr.h:#define APR_O_NONBLOCK_INHERITED 1 >> >> >>> There are some APR 1.5 autoconf changes to consider at >>> http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/build/apr_network.m4?view=log >> >> OK, backing out the changes from r1502805 seems to do the trick on 10b3 >> http://svn.apache.org/viewvc?view=revision&revision=1502805 >> >>> grep APR_O_NONBLOCK_INHERITED work/apr-1.5.0/include/apr.h >> work/apr-1.5.0/include/apr.h:#define APR_O_NONBLOCK_INHERITED 0 > > But acking out that change simply breaks the configure test on any > platform, because the resulting detection program no longer compiles. > > So the real culprit, is that the detection isn't doing the right thing. > > The test was changed before the compilation fix in the following revision: > > http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/build/apr_network.m4?r1=887002&r2=1449569&pathrev=1502805&diff_format=h > > That was due to the fact that I saw the test providing unreliable > results on a busy machine. > > So the question to me is: is the O_NONBLOCK setting inherited from a > listening socket on FreeBSD 10 - that's what the test tries to detect - > and how can we fix this feature test? > > Or: is the test correct, but it previously failed for systems, where the > Apache or APR code does not do the right thing if the test would have > succeeded. > Good questions ... Apache is running fine even with "APR_O_NONBLOCK_INHERITED 1" in apr.h, except - V4 mapping is enabled and in httpd.conf a Listen directive without IP address e.g. "Listen 80" is given and then only if requested from a remote host. ( a simple echo "GET /" | nc $lo0-address 80 is working ) -- Regards, olli