From: Niels Provos Date: Tue, 23 Dec 2008 14:53:55 +0000 (+0000) Subject: the switch of bufferevents for http connections did not handle the EVBUFFER_ERROR... X-Git-Tag: release-2.0.1-alpha~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97cebce8fdc400401093f669a56e46bef518386e;p=libevent the switch of bufferevents for http connections did not handle the EVBUFFER_ERROR case correctly svn:r971 --- diff --git a/http.c b/http.c index f8f17b5d..62dc00ca 100644 --- a/http.c +++ b/http.c @@ -1128,7 +1128,7 @@ evhttp_error_cb(struct bufferevent *bufev, short what, void *arg) if (what & EVBUFFER_TIMEOUT) { evhttp_connection_fail(evcon, EVCON_HTTP_TIMEOUT); - } else if (what & EVBUFFER_EOF) { + } else if (what & (EVBUFFER_EOF|EVBUFFER_ERROR)) { evhttp_connection_fail(evcon, EVCON_HTTP_EOF); } else { evhttp_connection_fail(evcon, EVCON_HTTP_BUFFER_ERROR);