o Fix a rare crash bug in evdns.
o Have bufferevent_socket_connect() with no arguments put a bufferevent into connecting mode.
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:
evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint16_t port)
{
evutil_socket_t fd;
- int res;
+ struct evhttp_bound_socket *bound;
if ((fd = bind_socket(address, port, 1 /*reuse*/)) == -1)
return (NULL);
return (NULL);
}
- struct evhttp_bound_socket *bound =
- evhttp_accept_socket_with_handle(http, fd);
+ bound = evhttp_accept_socket_with_handle(http, fd);
if (bound != NULL) {
event_debug(("Bound to port %d - Awaiting connections ... ",