Mercurial > hg > nginx-ranges
comparison src/http/ngx_http.c @ 162:6be073125f2e NGINX_0_3_28
nginx 0.3.28
*) Feature: the "restrict_host_names" directive was canceled.
*) Feature: the --with-cpu-opt=ppc64 configuration parameter.
*) Bugfix: on some condition the proxied connection with a client was
terminated prematurely.
Thanks to Vladimir Shutoff.
*) Bugfix: the "X-Accel-Limit-Rate" header line was not taken into
account if the request was redirected using the "X-Accel-Redirect"
header line.
*) Bugfix: the "post_action" directive ran only after a successful
completion of a request.
*) Bugfix: the proxied response body generated by the "post_action"
directive was transferred to a client.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 16 Feb 2006 00:00:00 +0300 |
parents | 2d15b82126ed |
children | 3314be145cb9 |
comparison
equal
deleted
inserted
replaced
161:086553d7da41 | 162:6be073125f2e |
---|---|
532 sizeof(ngx_http_conf_in_addr_t), ngx_http_cmp_conf_in_addrs); | 532 sizeof(ngx_http_conf_in_addr_t), ngx_http_cmp_conf_in_addrs); |
533 | 533 |
534 /* | 534 /* |
535 * check whether all name-based servers have the same configuraiton | 535 * check whether all name-based servers have the same configuraiton |
536 * as the default server, | 536 * as the default server, |
537 * or some servers restrict the host names, | |
538 * or some servers disable optimizing the server names | 537 * or some servers disable optimizing the server names |
539 */ | 538 */ |
540 | 539 |
541 in_addr = in_port[p].addrs.elts; | 540 in_addr = in_port[p].addrs.elts; |
542 for (a = 0; a < in_port[p].addrs.nelts; a++) { | 541 for (a = 0; a < in_port[p].addrs.nelts; a++) { |
543 | 542 |
544 name = in_addr[a].names.elts; | 543 name = in_addr[a].names.elts; |
545 for (s = 0; s < in_addr[a].names.nelts; s++) { | 544 for (s = 0; s < in_addr[a].names.nelts; s++) { |
546 | 545 |
547 if (in_addr[a].core_srv_conf != name[s].core_srv_conf | 546 if (in_addr[a].core_srv_conf != name[s].core_srv_conf |
548 || name[s].core_srv_conf->optimize_server_names == 0 | 547 || name[s].core_srv_conf->optimize_server_names == 0) |
549 || name[s].core_srv_conf->restrict_host_names | |
550 != NGX_HTTP_RESTRICT_HOST_OFF) | |
551 { | 548 { |
552 goto virtual_names; | 549 goto virtual_names; |
553 } | 550 } |
554 } | 551 } |
555 | 552 |
556 /* | 553 /* |
557 * if all name-based servers have the same configuration | 554 * if all name-based servers have the same configuration |
558 * as the default server, | 555 * as the default server, |
559 * and no servers restrict the host names, | |
560 * and no servers disable optimizing the server names | 556 * and no servers disable optimizing the server names |
561 * then we do not need to check them at run-time at all | 557 * then we do not need to check them at run-time at all |
562 */ | 558 */ |
563 | 559 |
564 in_addr[a].names.nelts = 0; | 560 in_addr[a].names.nelts = 0; |