Klaus Demo nginx / 3aba768
Added uwsgi_buffering and scgi_buffering directives. Patch by Peter Smit. Maxim Dounin 10 years ago
2 changed file(s) with 20 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9393 ngx_conf_set_access_slot,
9494 NGX_HTTP_LOC_CONF_OFFSET,
9595 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),
96103 NULL },
97104
98105 { ngx_string("scgi_ignore_client_abort"),
411418 u->abort_request = ngx_http_scgi_abort_request;
412419 u->finalize_request = ngx_http_scgi_finalize_request;
413420
414 u->buffering = 1;
421 u->buffering = scf->upstream.buffering;
415422
416423 u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t));
417424 if (u->pipe == NULL) {
10371044 /* "scgi_cyclic_temp_file" is disabled */
10381045 conf->upstream.cyclic_temp_file = 0;
10391046
1047 conf->upstream.change_buffering = 1;
1048
10401049 ngx_str_set(&conf->upstream.module, "scgi");
10411050
10421051 return conf;
120120 ngx_conf_set_access_slot,
121121 NGX_HTTP_LOC_CONF_OFFSET,
122122 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),
123130 NULL },
124131
125132 { ngx_string("uwsgi_ignore_client_abort"),
444451 u->abort_request = ngx_http_uwsgi_abort_request;
445452 u->finalize_request = ngx_http_uwsgi_finalize_request;
446453
447 u->buffering = 1;
454 u->buffering = uwcf->upstream.buffering;
448455
449456 u->pipe = ngx_pcalloc(r->pool, sizeof(ngx_event_pipe_t));
450457 if (u->pipe == NULL) {
10901097 /* "uwsgi_cyclic_temp_file" is disabled */
10911098 conf->upstream.cyclic_temp_file = 0;
10921099
1100 conf->upstream.change_buffering = 1;
1101
10931102 ngx_str_set(&conf->upstream.module, "uwsgi");
10941103
10951104 return conf;