projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c71c189
)
Joe.C writes:
author
Eric Andersen
<andersen@codepoet.org>
Wed, 4 Feb 2004 11:10:28 +0000
(11:10 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 4 Feb 2004 11:10:28 +0000
(11:10 -0000)
Hi,
When httpd connection is closed, bosybox httpd will
not stop reading from CGI program. This patch fix this
problem. It check the return value of bb_full_write and
stop reading from CGI if the connection is closed.
Please apply this patch.
Joe.C
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index
a02b63a
..
9b36101
100644
(file)
--- a/
networking/httpd.c
+++ b/
networking/httpd.c
@@
-1271,7
+1271,9
@@
static int sendCgi(const char *url,
}
firstLine = 0;
}
- bb_full_write(s, rbuf, count);
+ if (bb_full_write(s, rbuf, count) != count)
+ break;
+
#ifdef DEBUG
if (config->debugHttpd)
fprintf(stderr, "cgi read %d bytes\n", count);