update qos-scripts to v1.1 - rewritten hfsc rate calculation
[openwrt.git] / package / busybox / patches / 420-httpd_sendcgi_fix.patch
1 diff -ur busybox.old/networking/httpd.c busybox.dev/networking/httpd.c
2 --- busybox.old/networking/httpd.c 2007-02-10 16:36:50.950661000 +0100
3 +++ busybox.dev/networking/httpd.c 2007-02-11 21:24:52.026742384 +0100
4 @@ -1211,9 +1211,10 @@
5 #if PIPESIZE >= MAX_MEMORY_BUFF
6 # error "PIPESIZE >= MAX_MEMORY_BUFF"
7 #endif
8 - /* NB: was safe_read. If it *has to be* safe_read, */
9 - /* please explain why in this comment... */
10 - count = full_read(inFd, rbuf, PIPESIZE);
11 + /* reverted back to safe_read, otherwise httpd may block if the */
12 + /* cgi-script outputs page date before it has fully received all */
13 + /* (eg POST) data */
14 + count = safe_read(inFd, rbuf, PIPESIZE);
15 if (count == 0)
16 break; /* closed */
17 if (count < 0)
This page took 0.041887 seconds and 5 git commands to generate.