]> granicus.if.org Git - libevent/commitdiff
the switch of bufferevents for http connections did not handle the EVBUFFER_ERROR...
authorNiels Provos <provos@gmail.com>
Tue, 23 Dec 2008 14:53:55 +0000 (14:53 +0000)
committerNiels Provos <provos@gmail.com>
Tue, 23 Dec 2008 14:53:55 +0000 (14:53 +0000)
svn:r971

http.c

diff --git a/http.c b/http.c
index f8f17b5dd44082575dfe570fabde5b27e7e73ed4..62dc00ca30a04c3967fcc375c0bbfe54f77ceee4 100644 (file)
--- 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);