]> granicus.if.org Git - libevent/commitdiff
Try to fix an assertion failure related to close detection
authorNick Mathewson <nickm@torproject.org>
Tue, 30 Nov 2010 03:44:18 +0000 (22:44 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 30 Nov 2010 03:44:18 +0000 (22:44 -0500)
f700566c removed a line from evhttp_connection_stop_detectclose that
cleared the EVHTTP_CON_CLOSEDETECT flag.  I think this was an
accident, and suspect that it may be the cause of bug 3069555.

http.c

diff --git a/http.c b/http.c
index f867b639d1a447c58d3e97f9473d47c0212568a2..c51504396fd27ed8046bf0c5160cc89c106b307f 100644 (file)
--- a/http.c
+++ b/http.c
@@ -1183,6 +1183,8 @@ evhttp_connection_start_detectclose(struct evhttp_connection *evcon)
 static void
 evhttp_connection_stop_detectclose(struct evhttp_connection *evcon)
 {
+       evcon->flags &= ~EVHTTP_CON_CLOSEDETECT;
+
        bufferevent_disable(evcon->bufev, EV_READ);
 }