Hi All,
I am new to this mailing list.
I am using a multi threaded sever application using libevent-2.1.4-alpha. As part of it, binding the server to UNIX domain socket and listening for clients.
When accepting connections, creating buffer events with flags enabled with BEV_OPT_CLOSE_ON_FREE.
While debugging few issues with strace, observed that close is not getting called on the accepted client fd, when the client gets disconnected. However sockets are getting freed up, when checking proc entry /proc/pid/fds.
But, when disabled the BEV_OPT_CLOSE_ON_FREE flag and doing explicit close of accepted client fd, things looks as expected i nterms of strace output and proc/pid/fd entries.
Please help in understanding the behavior, your help will be highly appreciated.
--
With Best Regards,
Girish