mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-14 23:05:03 -04:00
Fix build warnings and add changelog entry for evhttp patches.
svn:r1424
This commit is contained in:
parent
c8b0fe4ad7
commit
2c1b0e4428
@ -15,6 +15,7 @@ Changes in 2.0.3-alpha:
|
|||||||
o Fix a rare crash bug in evdns.
|
o Fix a rare crash bug in evdns.
|
||||||
o Have bufferevent_socket_connect() with no arguments put a bufferevent into connecting mode.
|
o Have bufferevent_socket_connect() with no arguments put a bufferevent into connecting mode.
|
||||||
o Support sendfile on Solaris: patch from Caitlin Mercer.
|
o Support sendfile on Solaris: patch from Caitlin Mercer.
|
||||||
|
o New functions to explicitly reference a socket used by an evhttp object. Patches from David Reiss.
|
||||||
|
|
||||||
|
|
||||||
Changes in 2.0.2-alpha:
|
Changes in 2.0.2-alpha:
|
||||||
|
5
http.c
5
http.c
@ -2394,7 +2394,7 @@ struct evhttp_bound_socket *
|
|||||||
evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint16_t port)
|
evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint16_t port)
|
||||||
{
|
{
|
||||||
evutil_socket_t fd;
|
evutil_socket_t fd;
|
||||||
int res;
|
struct evhttp_bound_socket *bound;
|
||||||
|
|
||||||
if ((fd = bind_socket(address, port, 1 /*reuse*/)) == -1)
|
if ((fd = bind_socket(address, port, 1 /*reuse*/)) == -1)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
@ -2405,8 +2405,7 @@ evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct evhttp_bound_socket *bound =
|
bound = evhttp_accept_socket_with_handle(http, fd);
|
||||||
evhttp_accept_socket_with_handle(http, fd);
|
|
||||||
|
|
||||||
if (bound != NULL) {
|
if (bound != NULL) {
|
||||||
event_debug(("Bound to port %d - Awaiting connections ... ",
|
event_debug(("Bound to port %d - Awaiting connections ... ",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user