[git commit] httpd: do disable header reading timeout even if proxying
Denys Vlasenko
vda.linux at googlemail.com
Fri Apr 19 12:24:57 UTC 2019
commit: https://git.busybox.net/busybox/commit/?id=e49a572b529dc7dcfb052c679074b9b87577e388
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
handle_incoming_and_exit 2362 2369 +7
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/httpd.c | 2 ++
1 file changed, 2 insertions(+)
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)
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
More information about the busybox-cvs
mailing list