apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Simpson <ksimp...@larch.mailchannels.com>
Subject Re: Unable to set sockets to non blocking on OpenBSD
Date Fri, 27 Aug 2004 22:07:44 GMT
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

Mime
View raw message