changeset 5182:7a015bbda96f

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.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 23 Apr 2013 10:15:49 +0000
parents 4d0ac175f6e4
children 099427f518e4
files src/http/ngx_http_spdy.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_spd
     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) {