From: Valentin Bartenev Date: Tue, 23 Apr 2013 10:15:49 +0000 (+0000) Subject: SPDY: set NGX_TCP_NODELAY_DISABLED for fake connections. X-Git-Tag: release-1.4.0~2 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=670d42859d34a71c4d22ce25045e744e04bf04d2;p=nginx.git SPDY: set NGX_TCP_NODELAY_DISABLED for fake connections. This is to avoid setting the TCP_NODELAY flag on SPDY socket in ngx_http_upstream_send_response(). The latter works per request, but in SPDY case it might affect other streams in connection. --- diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c index 0e6fe9281..3febc23e9 100644 --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -1830,6 +1830,7 @@ ngx_http_spdy_create_stream(ngx_http_spdy_connection_t *sc, ngx_uint_t id, fc->log = log; fc->buffered = 0; fc->sndlowat = 1; + fc->tcp_nodelay = NGX_TCP_NODELAY_DISABLED; r = ngx_http_create_request(fc); if (r == NULL) {