httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrico Weigelt <>
Subject trouble w/ perchild MPM
Date Tue, 26 Nov 2002 07:14:53 GMT

hi folks

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. 

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 ? 

Bestes Mittel gegen Mailviren: Outlook löschen.
 Enrico Weigelt    ==   metux ITS 
 Webhosting ab 5 EUR/Monat.          UUCP, rawIP und vieles mehr.

 phone:     +49 36207 519931         www:     
 fax:       +49 36207 519932         email:
 cellphone: +49 174 7066481	     smsgate:
 Diese Mail wurde mit UUCP versandt.

View raw message