]> git.kaiwu.me - nginx.git/commitdiff
SPDY: set NGX_TCP_NODELAY_DISABLED for fake connections.
authorValentin Bartenev <vbart@nginx.com>
Tue, 23 Apr 2013 10:15:49 +0000 (10:15 +0000)
committerValentin Bartenev <vbart@nginx.com>
Tue, 23 Apr 2013 10:15:49 +0000 (10:15 +0000)
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

index 0e6fe9281e6937c496ffcb4f958e63e79c06179e..3febc23e9727b37d738fd944dc9efbd25f3ec11a 100644 (file)
@@ -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) {