It _may_ (just because I have a gut feeling, not because of actual consideration) be a socket options issue that may be related to your platform. I had a very similar problem with OpenBSD last summer wherein the socket blocking status could not be changed. The fix was a very simple change to the configure setup for APR.
Here's the patch that fixed that problem -- I haven't been able to find the discussion thread yet. http://article.gmane.org/gmane.comp.apache.apr.cvs/2955 I hope this helps. Regards, Ken William McKee [02/06/05 11:04 -0400]: > -------------8<---------- Start Bug Report ------------8<---------- > 1. Problem Description: > > Following on the heels of my previous post to Stas regarding an old > thread, I've another test failure report. This one is for > t/protocol/pseudo_http.pm. It is failing because the connection to the > server is immediately closed down. If I start the test server and try to > connect via telnet, I get the following log message in t/logs/error_log: > > [Thu Jun 02 10:57:45 2005] [error] APR::Socket::recv: (35) Resource > temporarily unavailable at > /stubs/usr_local/src/mod_perl-2.0.0/t/protocol/TestProtocol/pseudo_http.pm > line 118 > > Any suggestions on figuring out what resource is unavailable would be > appreciated. I'm not to familiar with socket ops. I know that icmp is > disabled inside my jail environment. > > > 2. Used Components and their Configuration: > > *** mod_perl version 2.000000 > > *** using /stubs/usr_local/src/mod_perl-2.0.0/lib/Apache2/BuildConfig.pm > > *** Makefile.PL options: > MP_APR_LIB => aprext > MP_AP_CONFIGURE => --with-mpm=prefork --prefix=/usr/local/apache2_perl > --enable-rewrite=static > MP_AP_PREFIX => /usr/local/src/httpd-2.0.54 > MP_COMPAT_1X => 1 > MP_GENERATE_XS => 1 > MP_LIBNAME => mod_perl > MP_USE_STATIC => 1 > > > *** /usr/local/src/httpd-2.0.54/httpd -V > Server version: Apache/2.0.54 > Server built: Jun 1 2005 11:46:40 > Server's Module Magic Number: 20020903:9 > Architecture: 32-bit > Server compiled with.... > -D APACHE_MPM_DIR="server/mpm/prefork" > -D APR_HAS_SENDFILE > -D APR_HAS_MMAP > -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled) > -D APR_USE_FLOCK_SERIALIZE > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > -D APR_HAS_OTHER_CHILD > -D AP_HAVE_RELIABLE_PIPED_LOGS > -D HTTPD_ROOT="/usr/local/apache2_perl" > -D SUEXEC_BIN="/usr/local/apache2_perl/bin/suexec" > -D DEFAULT_PIDLOG="logs/httpd.pid" > -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > -D DEFAULT_LOCKFILE="logs/accept.lock" > -D DEFAULT_ERRORLOG="logs/error_log" > -D AP_TYPES_CONFIG_FILE="conf/mime.types" > -D SERVER_CONFIG_FILE="conf/httpd.conf" > > > *** (apr|apu)-config linking info > > -L/usr/local/src/httpd-2.0.54/srclib/apr-util/.libs > -L/usr/local/src/httpd-2.0.54/srclib/apr-util -laprutil-0 -lexpat > -L/usr/local/src/httpd-2.0.54/srclib/apr/.libs > -L/usr/local/src/httpd-2.0.54/srclib/apr -lapr-0 -lm -lcrypt > > > > *** /usr/public/bin/perl -V > Summary of my perl5 (revision 5 version 8 subversion 6) configuration: > Platform: > osname=freebsd, osvers=5.3-release-p5, archname=i386-freebsd-64int > uname='freebsd hobbiton.shire.net 5.3-release-p5 freebsd 5.3-release-p5 > #3: thu feb 3 23:10:24 mst 2005 [EMAIL PROTECTED]:usrobjusrsrcsysbywater-smp > i386 ' > config_args='-sde -Dprefix=/usr/public/ > -Dotherlibdirs=/usr/public//lib/perl5/site_perl/5.8.6/mach:/usr/public//lib/perl5/site_perl/5.8.6 > -Darchlib=/usr/public//lib/perl5/5.8.6/mach > -Dprivlib=/usr/public//lib/perl5/5.8.6 > -Dman3dir=/usr/public//lib/perl5/5.8.6/perl/man/man3 > -Dman1dir=/usr/public//man/man1 -Dscriptdir=/usr/public//bin > -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.6/mach > -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.6 > -Dsiteman3dir=/usr/local/lib/perl5/5.8.6/man/man3 > -Dsiteman1dir=/usr/local/man/man1 -Dsitebin=/usr/local/bin > -Dsitescript=/usr/local/bin -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc > -Doptimize=-O -pipe -Duseshrplib > -Dccflags=-DAPPLLIB_EXP="/usr/public//lib/perl5/5.8.6/BSDPAN" -Ud_dosuid > -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=define use64bitall=undef uselongdouble=undef > usemymalloc=y, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/public//lib/perl5/5.8.6/BSDPAN" > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > -I/usr/local/include', > optimize='-O -pipe ', > cppflags='-DAPPLLIB_EXP="/usr/public//lib/perl5/5.8.6/BSDPAN" > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > -I/usr/local/include' > ccversion='', gccversion='3.4.2 [FreeBSD] 20040728', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 > ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=4, prototype=define > Linker and Libraries: > ld='cc', ldflags =' -Wl,-E -L/usr/local/lib' > libpth=/usr/lib /usr/local/lib > libs=-lm -lcrypt -lutil > perllibs=-lm -lcrypt -lutil > libc=, so=so, useshrplib=true, libperl=libperl.so > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' > -Wl,-R/usr/public/lib/perl5/5.8.6/i386-freebsd-64int/CORE' > cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: USE_64_BIT_INT USE_LARGE_FILES > Locally applied patches: > SUIDPERLIO0 - fix PERLIO_DEBUG local root exploit (CAN-2005-0155) > SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156) > Built under freebsd > Compiled at Feb 15 2005 07:22:27 > %ENV: > PERL_LWP_USE_HTTP_10="1" > @INC: > /usr/local/lib/perl5/site_perl/5.8.6/mach > /usr/local/lib/perl5/site_perl/5.8.6 > /usr/local/lib/perl5/site_perl > /usr/public//lib/perl5/5.8.6/BSDPAN > /usr/public/lib/perl5/5.8.6/i386-freebsd-64int > /usr/public/lib/perl5/5.8.6 > /usr/public//lib/perl5/site_perl/5.8.6/mach > /usr/public//lib/perl5/site_perl/5.8.6/i386-freebsd-64int > /usr/public//lib/perl5/site_perl/5.8.6 > . > > *** Packages of interest status: > > Apache2 : - > Apache2::Request : - > CGI : 3.05, 3.10 > ExtUtils::MakeMaker: 6.17, 6.17 > LWP : 5.803 > mod_perl : - > mod_perl2 : 2.000000 > > > 3. This is the core dump trace: (if you get a core dump): > > [CORE TRACE COMES HERE] > > This report was generated by /usr/local/bin/mp2bug on Thu Jun 2 15:02:50 > 2005 GMT. > > -------------8<---------- End Bug Report --------------8<---------- > > > > -- > Knowmad Services Inc. > http://www.knowmad.com > > > -- MailChannels: Assured Messaging -- Eliminate Critical False Positives http://www.mailchannels.com MailChannels Corporation Suite 1600, 1188 West Georgia St. Vancouver, BC, Canada Ken Simpson, CEO +1-604-729-1741 Sent by MailChannels: http://www.mailchannels.com