Bug in bb 1.3.1, httpd with POST

Denis Vlasenko vda.linux at googlemail.com
Sun Feb 11 19:08:25 UTC 2007


On Sunday 11 February 2007 19:54, Alexander Griesser wrote:
> Denis Vlasenko wrote:
> > I think I know where is the problem.
> >
> > networking/httpd.c: replace
> >
> >                 close(config->accepted_socket);
> >                 close(config->server_socket);
> >
> > with
> >
> >                 if (config->accepted_socket > 1)
> >                         close(config->accepted_socket);
> >                 if (config->server_socket > 1)
> >                         close(config->server_socket);
> >
> > Does it work now?
> 
> No, unfortunately, the symptoms stay the same after this change.

Make sure you killed/restarted httpd (so that you
don't use old version).

I noticed another problem - httpd may wait forever for
cgi output while cgi waits for httpd's output!

Attached patch fixes it too.
Please test it (patch is against current svn).
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4.patch
Type: text/x-diff
Size: 3499 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070211/650854cb/attachment-0002.bin 


More information about the busybox mailing list