comparison src/http/ngx_http_upstream.c @ 5947:d9025ea1f5a5

Upstream: simplified proxy_store and friends configuration code. This changes internal API related to handling of the "store" flag in ngx_http_upstream_conf_t. Previously, a non-null value of "store_lengths" was enough to enable store functionality with custom path. Now, the "store" flag is also required to be set. No functional changes.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 22 Dec 2014 12:58:56 +0300
parents 1573fc7875fa
children 634da79665d3
comparison
equal deleted inserted replaced
5946:ee941e49bd88 5947:d9025ea1f5a5
538 } 538 }
539 } 539 }
540 540
541 #endif 541 #endif
542 542
543 u->store = (u->conf->store || u->conf->store_lengths); 543 u->store = u->conf->store;
544 544
545 if (!u->store && !r->post_action && !u->conf->ignore_client_abort) { 545 if (!u->store && !r->post_action && !u->conf->ignore_client_abort) {
546 r->read_event_handler = ngx_http_upstream_rd_check_broken_connection; 546 r->read_event_handler = ngx_http_upstream_rd_check_broken_connection;
547 r->write_event_handler = ngx_http_upstream_wr_check_broken_connection; 547 r->write_event_handler = ngx_http_upstream_wr_check_broken_connection;
548 } 548 }