diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-19 14:24:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-04-19 14:24:57 +0200 |
commit | e49a572b529dc7dcfb052c679074b9b87577e388 (patch) | |
tree | eb5a317a10112f2b4e0c5e6451802fb9856e4c14 | |
parent | 1c356948f137d46872d6af17d586960517cf100a (diff) | |
download | busybox-w32-e49a572b529dc7dcfb052c679074b9b87577e388.tar.gz busybox-w32-e49a572b529dc7dcfb052c679074b9b87577e388.tar.bz2 busybox-w32-e49a572b529dc7dcfb052c679074b9b87577e388.zip |
httpd: do disable header reading timeout even if proxying
function old new delta
handle_incoming_and_exit 2362 2369 +7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index d44ec271a..3f1e02ec8 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -2214,6 +2214,8 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) | |||
2214 | send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR); | 2214 | send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR); |
2215 | if (connect(proxy_fd, &lsa->u.sa, lsa->len) < 0) | 2215 | if (connect(proxy_fd, &lsa->u.sa, lsa->len) < 0) |
2216 | send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR); | 2216 | send_headers_and_exit(HTTP_INTERNAL_SERVER_ERROR); |
2217 | /* Disable peer header reading timeout */ | ||
2218 | alarm(0); | ||
2217 | /* Config directive was of the form: | 2219 | /* Config directive was of the form: |
2218 | * P:/url:[http://]hostname[:port]/new/path | 2220 | * P:/url:[http://]hostname[:port]/new/path |
2219 | * When /urlSFX is requested, reverse proxy it | 2221 | * When /urlSFX is requested, reverse proxy it |