the switch of bufferevents for http connections did not handle the EVBUFFER_ERROR case correctly

svn:r971
This commit is contained in:
Niels Provos 2008-12-23 14:53:55 +00:00
parent ebcf5efcfe
commit 97cebce8fd

2
http.c
View File

@ -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);