From b17ef0510deb4c810fb8849827e15251164bc23d Mon Sep 17 00:00:00 2001 From: ShenFeng0312 Date: Mon, 3 Jun 2024 11:28:11 +0800 Subject: [PATCH] fix timeout --- ngx_http_multi_upstream_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ngx_http_multi_upstream_module.c b/ngx_http_multi_upstream_module.c index a894b81..fd336d1 100644 --- a/ngx_http_multi_upstream_module.c +++ b/ngx_http_multi_upstream_module.c @@ -484,6 +484,11 @@ ngx_http_multi_upstream_init_connection(ngx_connection_t *c, fake_u->rewrite_redirect = u->rewrite_redirect; fake_u->rewrite_cookie = u->rewrite_cookie; +#if (HAVE_NGX_UPSTREAM_TIMEOUT_FIELDS) + fake_u->read_timeout = u->read_timeout; + fake_u->connect_timeout = u->connect_timeout; + fake_u->send_timeout = u->send_timeout; +#endif fake_u->multi = 1;