struct evconnlistener * evconnlistener_new(struct event_base *base, evconnlistener_cb cb, void *ptr, unsigned flags, int backlog, evutil_socket_t fd)
The guarantee is that you want to change. Inside they call:
listen(fd, backlog)
However, in their http library they record a lag of up to 128:
evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint16_t port) { [...] if (listen(fd, 128) == -1) { event_sock_warn(fd, "%s: listen", __func__); evutil_closesocket(fd); return (NULL); } [...] }
source share