[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] evhttp_accept_socket_with_handle() implies LEV_CLOSE_ON_FREE on underlying evconnlistener



Hi guys,

I noticed that evhttp_accept_socket_with_handle() sets the LEV_OPT_CLOSE_ON_FREE flag on underlying evconnlistener, and in this case calling evhttp_del_accept_socket() later causes socket fd to be freed(while documentation explicitly says this function does not close). Is this a bug? Or I should create evconnlistener manually and use evhttp_bind_listener?

--
WBR,
ÂConstantine