From 670d42859d34a71c4d22ce25045e744e04bf04d2 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Tue, 23 Apr 2013 10:15:49 +0000 Subject: [PATCH] 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. --- src/http/ngx_http_spdy.c | 1 + 1 file changed, 1 insertion(+) 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) {