Welcome! Log In Create A New Profile

Advanced

[nginx] Upstream: slightly optimized ngx_http_upstream_process_h...

Ruslan Ermilov
May 21, 2013 05:00AM
details: http://hg.nginx.org/nginx/rev/ddba4e308ecc
branches:
changeset: 5217:ddba4e308ecc
user: Ruslan Ermilov <ru@nginx.com>
date: Tue May 21 12:54:27 2013 +0400
description:
Upstream: slightly optimized ngx_http_upstream_process_header().

diffstat:

src/http/ngx_http_upstream.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)

diffs (20 lines):

diff -r 4a40163772a1 -r ddba4e308ecc src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c Tue May 21 12:54:26 2013 +0400
+++ b/src/http/ngx_http_upstream.c Tue May 21 12:54:27 2013 +0400
@@ -1709,11 +1709,11 @@ ngx_http_upstream_process_header(ngx_htt
ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
return;
}
-
- if (u->length == 0) {
- ngx_http_upstream_finalize_request(r, u, 0);
- return;
- }
+ }
+
+ if (u->length == 0) {
+ ngx_http_upstream_finalize_request(r, u, 0);
+ return;
}

u->read_event_handler = ngx_http_upstream_process_body_in_memory;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Upstream: slightly optimized ngx_http_upstream_process_h...

Ruslan Ermilov 736 May 21, 2013 05:00AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready