Hi Azat,

Thanks a ton for your reply.

As mentioned in the post, I created multi threaded server using pthreads
and the strace command I am using is
# strace -p <pid> -o /tmp/strace_out

Will get back to you with the sample code.

On 31 January 2016 at 02:16, Azat Khuzhin <[email protected]> wrote:

> 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 [email protected] with
> unsubscribe libevent-users    in the body.
>



-- 
With Best Regards,
Girish

Reply via email to