comparison src/http/modules/ngx_http_memcached_module.c @ 348:e10168d6e371 NGINX_0_6_18

nginx 0.6.18 *) Change: now the ngx_http_userid_module adds start time microseconds to the cookie field contains a pid value. *) Change: now the full request line instead of URI only is written to error_log. *) Feature: variables support in the "proxy_pass" directive. *) Feature: the "resolver" and "resolver_timeout" directives. *) Feature: now the directive "add_header last-modified ''" deletes a "Last-Modified" response header line. *) Bugfix: the "limit_rate" directive did not allow to use full throughput, even if limit value was very high.
author Igor Sysoev <http://sysoev.ru>
date Tue, 27 Nov 2007 00:00:00 +0300
parents 10cc350ed8a1
children 9121a0a91f47
comparison
equal deleted inserted replaced
347:d53199b68e17 348:e10168d6e371
182 u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t)); 182 u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t));
183 if (u == NULL) { 183 if (u == NULL) {
184 return NGX_HTTP_INTERNAL_SERVER_ERROR; 184 return NGX_HTTP_INTERNAL_SERVER_ERROR;
185 } 185 }
186 186
187 u->schema = mlcf->upstream.schema;
188
187 u->peer.log = r->connection->log; 189 u->peer.log = r->connection->log;
188 u->peer.log_error = NGX_ERROR_ERR; 190 u->peer.log_error = NGX_ERROR_ERR;
189 #if (NGX_THREADS) 191 #if (NGX_THREADS)
190 u->peer.lock = &r->connection->lock; 192 u->peer.lock = &r->connection->lock;
191 #endif 193 #endif
614 616
615 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module); 617 clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
616 618
617 clcf->handler = ngx_http_memcached_handler; 619 clcf->handler = ngx_http_memcached_handler;
618 620
619 lcf->upstream.location = clcf->name;
620
621 if (clcf->name.data[clcf->name.len - 1] == '/') { 621 if (clcf->name.data[clcf->name.len - 1] == '/') {
622 clcf->auto_redirect = 1; 622 clcf->auto_redirect = 1;
623 } 623 }
624 624
625 lcf->index = ngx_http_get_variable_index(cf, &ngx_http_memcached_key); 625 lcf->index = ngx_http_get_variable_index(cf, &ngx_http_memcached_key);