httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject [BUG]: "httpd hangs when SOCKS and mod_proxy are enabled" on Solaris 2.x (fwd)
Date Mon, 10 Feb 1997 15:40:07 GMT

Not acked

---------- Forwarded message ----------
Date: Mon Feb 10 6:28:24 1997
From: Magnus Hyllander <mhy@rational.com>
To: apache-bugs%apache.org@organic.com
Subject: [BUG]: "httpd hangs when SOCKS and mod_proxy are enabled" on Solaris 2.x

Submitter: Magnus Hyllander <mhy@rational.com>
Operating system: Solaris 2.x, version: 2.5
Version of Apache Used: 1.2b6
Extra Modules used: proxy_module
URL exhibiting problem: 

Symptoms:
--
I am having problems with 1.2b6 hanging. As near 
as I can make it out, it has something to do with
the proxy functionality, but maybe also with the
SOCKS 4.2 package which I have linked Apache with.
Below are my changes to the Configuration file.The
Rule socks4=yes did not work for me, so I had to 
do it using the EXTRA_CFLAGS instead:

gloin:/home/mhy/downloaded/apache_1.2b6/src# diff Configuration.tmpl Configuration
44,46c44,46
< EXTRA_CFLAGS=
< EXTRA_LFLAGS=
< EXTRA_LIBS=
---
> EXTRA_CFLAGS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dbind=Rbind -Daccept=Raccept
-Dlisten=Rlisten -Dselect=Rselect
> EXTRA_LFLAGS=-L.
> EXTRA_LIBS=-lresolv -lsocks
49c49
< #CC=
---
> CC=gcc
235c235
< # Module proxy_module        modules/proxy/libproxy.a
---
> Module proxy_module        modules/proxy/libproxy.a

The server works fine at first, but after a few 
minutes of following links, Apache hangs.
Below is what I see if I run truss on the httpd 
processes. It always looks like this, with one 
process in read and the rest in fcntl. It never 
times out either.

gloin:/home/mhy/downloaded/apache_1.2b6# foreach x ( `ps -u nobody | tail +2 |wk '{print $1}'`
)
foreach? truss -p $x ; end
foreach? end
fcntl(5, F_SETLKW, 0x00065CC4)  (sleeping...)
^Cfcntl(5, F_SETLKW, 0x00065CC4)        (sleeping...)
^Cfcntl(5, F_SETLKW, 0x00065CC4)        (sleeping...)
^Cfcntl(5, F_SETLKW, 0x00065CC4)        (sleeping...)
^Cread(8, 0xEFFFF6D4, 8)                (sleeping...)
^Cfcntl(5, F_SETLKW, 0x00065CC4)        (sleeping...)
^Cfcntl(5, F_SETLKW, 0x00065CC4)        (sleeping...)
^Cfcntl(5, F_SETLKW, 0x00065CC4)        (sleeping...)
^Cfcntl(5, F_SETLKW, 0x00065CC4)        (sleeping...)
^C

I have the feeling that as long as I only access 
the servers local htdocs, everything works alright, 
but if I try to access other URLs then the server 
hangs after a while. (I tried turning off proxying
once and then it didn't hang either.)

--

Backtrace:
--

--



Mime
View raw message