diff options
| author | Quantum <quantum2048@gmail.com> | 2020-06-15 17:35:26 -0400 |
|---|---|---|
| committer | Quantum <quantum2048@gmail.com> | 2020-06-15 17:35:26 -0400 |
| commit | 2afc050bd0e59d1ae5391c962e4c6c83120e8ebf (patch) | |
| tree | a9bb65f3c301d22d64ef4e89c95bdf1aa0c0c514 /src/http/modules/ngx_http_uwsgi_module.c | |
| parent | 58d1412f0df08a90cc4df9bb3e5fb8a550daf63e (diff) | |
| download | nginx-2afc050bd0e59d1ae5391c962e4c6c83120e8ebf.tar.gz nginx-2afc050bd0e59d1ae5391c962e4c6c83120e8ebf.tar.bz2 | |
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.
Diffstat (limited to 'src/http/modules/ngx_http_uwsgi_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_uwsgi_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index 56dc236ef..bfc8b1d78 100644 --- 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_request_t *r) r->upstream->request_bufs = cl; } + b->flush = 1; cl->next = NULL; return NGX_OK; |
