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

Re: [Libevent-users] close not captured with strace for sockets created using BEV_OPT_CLOSE_ON_FREE



On Sat, Jan 30, 2016 at 06:08:37PM +0530, girish kumar wrote:
> 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.

Hi,

Is you app single-threaded?
Can you please post samples and specific strace command?

Thanks,
Azat.

> 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.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.