mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 05:48:51 -04:00
r15167@tombo: nickm | 2007-12-05 23:35:30 -0500
Backport: Apply patch from bug 1841036: set the base of the correct event in evhttp_connection_start_detectclose() svn:r570
This commit is contained in:
parent
ef12a5a15a
commit
d582000e37
@ -9,6 +9,7 @@ Changes in current version:
|
||||
o provide event_reinit() to reintialize an event_base after fork
|
||||
o small improvements to evhttp documentation
|
||||
o always generate Date and Content-Length headers for HTTP/1.1 replies
|
||||
o set the correct event base for HTTP close events
|
||||
|
||||
|
||||
Changes in 1.4.0-beta:
|
||||
|
2
http.c
2
http.c
@ -943,7 +943,7 @@ evhttp_connection_start_detectclose(struct evhttp_connection *evcon)
|
||||
event_del(&evcon->close_ev);
|
||||
event_set(&evcon->close_ev, evcon->fd, EV_READ,
|
||||
evhttp_detect_close_cb, evcon);
|
||||
EVHTTP_BASE_SET(evcon, &evcon->ev);
|
||||
EVHTTP_BASE_SET(evcon, &evcon->close_ev);
|
||||
event_add(&evcon->close_ev, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user