Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 68016 invoked from network); 27 Aug 2004 22:08:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Aug 2004 22:08:24 -0000 Received: (qmail 69509 invoked by uid 500); 27 Aug 2004 22:08:10 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 69408 invoked by uid 500); 27 Aug 2004 22:08:09 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 69328 invoked by uid 99); 27 Aug 2004 22:08:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Date: Fri, 27 Aug 2004 15:07:44 -0700 From: Ken Simpson To: dev@apr.apache.org Subject: Re: Unable to set sockets to non blocking on OpenBSD Message-ID: <20040827220743.GA22390@mailchannels.com> Reply-To: Ken Simpson References: <20040827023033.GC15108@mailchannels.com> <20040827061605.GA29657@redhat.com> <20040827214757.GA2140@mailchannels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040827214757.GA2140@mailchannels.com> User-Agent: Mutt/1.4.1i Organization: MailChannels Corporation X-Operating-System: MailChannels Lumos 1.0 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N My mistake -- I didn't rerun ./buildconf. The patch ought to work. TTUL Ken Ken Simpson [27/08/04 14:47 -0700]: > > I expect what you're seeing is that APR thinks that O_NONBLOCK is not > > inherited across accept(), although it is on OpenBSD. There is a > > configure test for this, but I bet it doesn't work because binding to an > > ephemeral port doesn't work on OpenBSD IIRC. > > > > If you have all the necessary autofoo installed, you could try this > > patch (then run ./buildconf): > > > > Index: build/apr_hints.m4 > > =================================================================== > > RCS file: /home/cvs/apr/build/apr_hints.m4,v > > retrieving revision 1.68 > > diff -u -r1.68 apr_hints.m4 > > --- build/apr_hints.m4 12 Aug 2004 13:44:29 -0000 1.68 > > +++ build/apr_hints.m4 27 Aug 2004 06:12:04 -0000 > > @@ -131,6 +131,7 @@ > > ;; > > *-openbsd*) > > APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS]) > > + APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes]) > > ;; > > *-netbsd*) > > APR_ADDTO(CPPFLAGS, [-DNETBSD]) > > The patch doesn't seem to work -- my apr.h still says this after ./configure: > > /* Is the TCP_NODELAY socket option inherited from listening sockets? > */ > #define APR_TCP_NODELAY_INHERITED 0 > > I think it should set that #define to 1 -- am I right? > > Thanks, > Ken > > -- > MailChannels: Imagine no more spam > > -- > http://www.mailchannels.com > MailChannels Corporation > Suite 1600, 1188 West Georgia St. > Vancouver, BC, Canada > > Ken Simpson, CEO > +1-604-729-1741 -- MailChannels: Imagine no more spam -- http://www.mailchannels.com MailChannels Corporation Suite 1600, 1188 West Georgia St. Vancouver, BC, Canada Ken Simpson, CEO +1-604-729-1741