mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Try to fix an assertion failure related to close detection
f700566c removed a line from evhttp_connection_stop_detectclose that cleared the EVHTTP_CON_CLOSEDETECT flag. I think this was an accident, and suspect that it may be the cause of bug 3069555.
This commit is contained in:
parent
29f7623c82
commit
0faaa39592
2
http.c
2
http.c
@ -1183,6 +1183,8 @@ evhttp_connection_start_detectclose(struct evhttp_connection *evcon)
|
|||||||
static void
|
static void
|
||||||
evhttp_connection_stop_detectclose(struct evhttp_connection *evcon)
|
evhttp_connection_stop_detectclose(struct evhttp_connection *evcon)
|
||||||
{
|
{
|
||||||
|
evcon->flags &= ~EVHTTP_CON_CLOSEDETECT;
|
||||||
|
|
||||||
bufferevent_disable(evcon->bufev, EV_READ);
|
bufferevent_disable(evcon->bufev, EV_READ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user