possible httpd applet bug?

Giuseppe Ciotta giuseppe at telvia.it
Wed Jan 3 18:13:57 UTC 2007


Paul Albrecht wrote:
> I have a question about the way the busybox httpd applet reads cgi
> program output: Why is safe_read used rather than full_read?
>
> The problem with safe_read is you're not guaranteed the entire first
> line of cgi output on the first read so the applet doesn't handle the
> status line or content-type header correctly.
>
> Seems like if you don't want to read all the cgi output at once, then
> you should buffer the first line, but I don't think it makes much of a
> difference for busybox httpd.
>
> Paul Albrecht
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>   
I've noticed the same problem some time ago... see
http://www.busybox.net/lists/busybox/2006-May/021421.html



More information about the busybox mailing list