mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-16 07:45:23 -04:00
the switch of bufferevents for http connections did not handle the EVBUFFER_ERROR case correctly
svn:r971
This commit is contained in:
parent
ebcf5efcfe
commit
97cebce8fd
2
http.c
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user