comparison src/http/modules/ngx_http_uwsgi_module.c @ 7666:8cf31489b479

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.
author Quantum <quantum2048@gmail.com>
date Mon, 15 Jun 2020 17:35:26 -0400
parents 8981dbb12254
children bffcc5af1d72
comparison
equal deleted inserted replaced
7665:d127837c714f 7666:8cf31489b479
1139 1139
1140 } else { 1140 } else {
1141 r->upstream->request_bufs = cl; 1141 r->upstream->request_bufs = cl;
1142 } 1142 }
1143 1143
1144 b->flush = 1;
1144 cl->next = NULL; 1145 cl->next = NULL;
1145 1146
1146 return NGX_OK; 1147 return NGX_OK;
1147 } 1148 }
1148 1149