projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c35694
)
httpd: do disable header reading timeout even if proxying
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 19 Apr 2019 12:24:57 +0000
(14:24 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 19 Apr 2019 12:24:57 +0000
(14:24 +0200)
function old new delta
handle_incoming_and_exit 2362 2369 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index d44ec271ab53ad7b7290ccfbda8e38d9d6b7c583..3f1e02ec8ab9039f8ddccc9bfb3ab110d8a26b0d 100644
(file)
--- a/
networking/httpd.c
+++ b/
networking/httpd.c
@@
-2214,6
+2214,8
@@
static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr)
send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR);
if (connect(proxy_fd, &lsa->u.sa, lsa->len) < 0)
send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR);
+ /* Disable peer header reading timeout */
+ alarm(0);
/* Config directive was of the form:
* P:/url:[http://]hostname[:port]/new/path
* When /urlSFX is requested, reverse proxy it