possible httpd applet bug?
Paul Albrecht
albrecht at rdi1.com
Tue Jan 2 15:15:55 UTC 2007
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
More information about the busybox
mailing list