From: Nick Mathewson Date: Tue, 30 Nov 2010 03:44:18 +0000 (-0500) Subject: Try to fix an assertion failure related to close detection X-Git-Tag: release-2.0.9-rc~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0faaa395921e3da1da5202befd849614c6e9c37c;p=libevent Try to fix an assertion failure related to close detection 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. --- diff --git a/http.c b/http.c index f867b639..c5150439 100644 --- 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); }