httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: trouble w/ perchild MPM
Date Tue, 26 Nov 2002 12:06:33 GMT
Enrico Weigelt <weigelt@metux.de> writes:

> i've got some trouble with the perchild MPM in httpd-2.0.43.
> Especially forwarding connections to other childs seems to be
> a little bit buggy. 
> 
> an little bug in receive_from_other_child() was:
> 
> >    iov[0].iov_base = headers;
> >    iov[0].iov_len = HUGE_STRING_LEN;
> >    iov[0].iov_base = request_body;
> >    iov[0].iov_len = HUGE_STRING_LEN;
> 
> perhaps should be:
> 
>     iov[0].iov_base = headers;
>     iov[0].iov_len = HUGE_STRING_LEN;
>     iov[1].iov_base = request_body;
>     iov[1].iov_len = HUGE_STRING_LEN;
> 
> with this correction it mostly works, but sometimes the connection
> passing fails, no child seems to receive the connection. 

This has already been fixed.

> also there are some other strange things:
> 
> * on connection forwarding, in the receiving child, perchild_post_read()
>   is called twice, first w/ the right request, then an empty one.
>   i've modified the code to drop these requests (return DECLINE;)
> 
> * sometimes the socket fd (sock->socketdes) changes on return 
>   from receive_from_other_child() to worker_thread to an 
>   enormously high number (i.e.136489464)
>   
> could anyone help ? 

Please grab perchild.c from current cvs and see how much is still
broken.  Here is one easy place to grab it.  Make sure you get the
latest version.

http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/mpm/experimental/perchild/perchild.c

Any debugging you can provide would be much appreciated.  perchild
is one of the potentially cool features of 2.0, but at the moment it
seems that core Apache developers don't have time to work on it (hey,
there's a lot of code here :) ).  The handful of people including
yourself trying to debug/use it could make a dramatic difference in
its viability, just pushing it forward bit by bit until it works.  If
there were a way to get you folks communicating and trying each others
patches, it could improve pretty quickly.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message