upgraded the nginx core to 1.2.3; also bumped the version number to 1.2.3.1rc1.

This commit is contained in:
agentzh (Yichun Zhang)
2012-08-15 16:42:06 -07:00
parent 89bdbc7cca
commit 6fe95fbbe4
11 changed files with 1946 additions and 3 deletions

View File

@ -0,0 +1,32 @@
diff -ur nginx-1.2.3/src/http/ngx_http_upstream.c nginx-1.2.3-patched/src/http/ngx_http_upstream.c
--- nginx-1.2.3/src/http/ngx_http_upstream.c 2011-12-14 02:34:34.000000000 +0800
+++ nginx-1.2.3-patched/src/http/ngx_http_upstream.c 2012-03-21 21:20:17.333111806 +0800
@@ -1385,6 +1385,8 @@
/* rc == NGX_OK */
+ u->request_all_sent = 1;
+
if (c->tcp_nopush == NGX_TCP_NOPUSH_SET) {
if (ngx_tcp_push(c->fd) == NGX_ERROR) {
ngx_log_error(NGX_LOG_CRIT, c->log, ngx_socket_errno,
@@ -1451,7 +1453,7 @@
#endif
- if (u->header_sent) {
+ if (u->request_all_sent) {
u->write_event_handler = ngx_http_upstream_dummy_handler;
(void) ngx_handle_write_event(c->write, 0);
diff -ur nginx-1.2.3/src/http/ngx_http_upstream.h nginx-1.2.3-patched/src/http/ngx_http_upstream.h
--- nginx-1.2.3/src/http/ngx_http_upstream.h 2011-11-01 22:18:10.000000000 +0800
+++ nginx-1.2.3-patched/src/http/ngx_http_upstream.h 2012-03-21 21:18:21.041237173 +0800
@@ -313,6 +313,7 @@
unsigned buffering:1;
unsigned request_sent:1;
+ unsigned request_all_sent:1;
unsigned header_sent:1;
};