Added uwsgi_buffering and scgi_buffering directives.
Patch by Peter Smit.
Maxim Dounin
10 years ago
93 | 93 |
ngx_conf_set_access_slot,
|
94 | 94 |
NGX_HTTP_LOC_CONF_OFFSET,
|
95 | 95 |
offsetof(ngx_http_scgi_loc_conf_t, upstream.store_access),
|
|
96 |
NULL },
|
|
97 |
|
|
98 |
{ ngx_string("scgi_buffering"),
|
|
99 |
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
|
100 |
ngx_conf_set_flag_slot,
|
|
101 |
NGX_HTTP_LOC_CONF_OFFSET,
|
|
102 |
offsetof(ngx_http_scgi_loc_conf_t, upstream.buffering),
|
96 | 103 |
NULL },
|
97 | 104 |
|
98 | 105 |
{ ngx_string("scgi_ignore_client_abort"),
|
|
411 | 418 |
u->abort_request = ngx_http_scgi_abort_request;
|
412 | 419 |
u->finalize_request = ngx_http_scgi_finalize_request;
|
413 | 420 |
|
414 | |
u->buffering = 1;
|
|
421 |
u->buffering = scf->upstream.buffering;
|
415 | 422 |
|
416 | 423 |
u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t));
|
417 | 424 |
if (u->pipe == NULL) {
|
|
1037 | 1044 |
/* "scgi_cyclic_temp_file" is disabled */
|
1038 | 1045 |
conf->upstream.cyclic_temp_file = 0;
|
1039 | 1046 |
|
|
1047 |
conf->upstream.change_buffering = 1;
|
|
1048 |
|
1040 | 1049 |
ngx_str_set(&conf->upstream.module, "scgi");
|
1041 | 1050 |
|
1042 | 1051 |
return conf;
|
120 | 120 |
ngx_conf_set_access_slot,
|
121 | 121 |
NGX_HTTP_LOC_CONF_OFFSET,
|
122 | 122 |
offsetof(ngx_http_uwsgi_loc_conf_t, upstream.store_access),
|
|
123 |
NULL },
|
|
124 |
|
|
125 |
{ ngx_string("uwsgi_buffering"),
|
|
126 |
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
|
127 |
ngx_conf_set_flag_slot,
|
|
128 |
NGX_HTTP_LOC_CONF_OFFSET,
|
|
129 |
offsetof(ngx_http_uwsgi_loc_conf_t, upstream.buffering),
|
123 | 130 |
NULL },
|
124 | 131 |
|
125 | 132 |
{ ngx_string("uwsgi_ignore_client_abort"),
|
|
444 | 451 |
u->abort_request = ngx_http_uwsgi_abort_request;
|
445 | 452 |
u->finalize_request = ngx_http_uwsgi_finalize_request;
|
446 | 453 |
|
447 | |
u->buffering = 1;
|
|
454 |
u->buffering = uwcf->upstream.buffering;
|
448 | 455 |
|
449 | 456 |
u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t));
|
450 | 457 |
if (u->pipe == NULL) {
|
|
1090 | 1097 |
/* "uwsgi_cyclic_temp_file" is disabled */
|
1091 | 1098 |
conf->upstream.cyclic_temp_file = 0;
|
1092 | 1099 |
|
|
1100 |
conf->upstream.change_buffering = 1;
|
|
1101 |
|
1093 | 1102 |
ngx_str_set(&conf->upstream.module, "uwsgi");
|
1094 | 1103 |
|
1095 | 1104 |
return conf;
|