Must really be safe_read(), not full_read()? (was: [PATCH] fix httpd lockup in cgi POSTs)

Denis Vlasenko vda.linux at googlemail.com
Mon Feb 12 22:28:33 UTC 2007


On Monday 12 February 2007 22:33, Paul Albrecht wrote:
> > So far I am happy with "bbox httpd doesn't support insane cgis
> > which split their HTTP response" way.
> > 
> 
> A cgi program doesn't have to "split" its output for the problem to
> occur because the data is read over a socket over a network and is not
> buffered. There's simply no guarantee an unbuffered read gets a full
> line of output from a cgi program however the data gets output.

No, data is written thru the local pipe from cgi to httpd process.
--
vda



More information about the busybox mailing list