mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Don't disable reading from the HTTP connection after sending the request to be notified of connection-close in time
This commit is contained in:
parent
78762383b7
commit
c76640b5c2
1
http.c
1
http.c
@ -342,7 +342,6 @@ evhttp_write_buffer(struct evhttp_connection *evcon,
|
|||||||
evcon->cb = cb;
|
evcon->cb = cb;
|
||||||
evcon->cb_arg = arg;
|
evcon->cb_arg = arg;
|
||||||
|
|
||||||
bufferevent_disable(evcon->bufev, EV_READ);
|
|
||||||
bufferevent_enable(evcon->bufev, EV_WRITE);
|
bufferevent_enable(evcon->bufev, EV_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user