# HG changeset patch # User Quantum # Date 1592256926 14400 # Node ID 8cf31489b479b689b7ff4a9601ce24c914d0394c # Parent d127837c714f398e04cc8cf26f922c845fb7a6e8 Correctly flush request body to uwsgi with SSL. The flush flag was not set when forwarding the request body to the uwsgi server. When using uwsgi_pass suwsgi://..., this causes the uwsgi server to wait indefinitely for the request body and eventually time out due to SSL buffering. This is essentially the same change as 4009:3183165283cc, which was made to ngx_http_proxy_module.c. This will fix the uwsgi bug https://github.com/unbit/uwsgi/issues/1490. diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c @@ -1141,6 +1141,7 @@ ngx_http_uwsgi_create_request(ngx_http_r r->upstream->request_bufs = cl; } + b->flush = 1; cl->next = NULL; return NGX_OK;