[nginx] SPDY: set empty write handler during connection finaliza...

Valentin Bartenev vbart at nginx.com
Mon Sep 30 20:39:58 UTC 2013


details:   http://hg.nginx.org/nginx/rev/db85dacfa013
branches:  
changeset: 5404:db85dacfa013
user:      Valentin Bartenev <vbart at nginx.com>
date:      Tue Oct 01 00:12:30 2013 +0400
description:
SPDY: set empty write handler during connection finalization.

While ngx_http_spdy_write_handler() should not make any harm with current code,
calling it during finalization of SPDY connection was not intended.

diffstat:

 src/http/ngx_http_spdy.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 7e062646da6f -r db85dacfa013 src/http/ngx_http_spdy.c
--- a/src/http/ngx_http_spdy.c	Tue Oct 01 00:04:00 2013 +0400
+++ b/src/http/ngx_http_spdy.c	Tue Oct 01 00:12:30 2013 +0400
@@ -2832,6 +2832,7 @@ ngx_http_spdy_finalize_connection(ngx_ht
 
     c->error = 1;
     c->read->handler = ngx_http_empty_handler;
+    c->write->handler = ngx_http_empty_handler;
 
     sc->last_out = NULL;
 



More information about the nginx-devel mailing list