]> git.kaiwu.me - nginx.git/commitdiff
SPDY: set empty write handler during connection finalization.
authorValentin Bartenev <vbart@nginx.com>
Mon, 30 Sep 2013 20:12:30 +0000 (00:12 +0400)
committerValentin Bartenev <vbart@nginx.com>
Mon, 30 Sep 2013 20:12:30 +0000 (00:12 +0400)
While ngx_http_spdy_write_handler() should not make any harm with current code,
calling it during finalization of SPDY connection was not intended.

src/http/ngx_http_spdy.c

index 6802981afc96fdd935db8105dba1fb1b4bc96747..36e23be02f093455cfbafc0b3f741531e57933f7 100644 (file)
@@ -2832,6 +2832,7 @@ ngx_http_spdy_finalize_connection(ngx_http_spdy_connection_t *sc,
 
     c->error = 1;
     c->read->handler = ngx_http_empty_handler;
+    c->write->handler = ngx_http_empty_handler;
 
     sc->last_out = NULL;