From 97cebce8fdc400401093f669a56e46bef518386e Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 23 Dec 2008 14:53:55 +0000 Subject: [PATCH] the switch of bufferevents for http connections did not handle the EVBUFFER_ERROR case correctly svn:r971 --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0