Hey,
I understand Simon's view on how not to close buffer event sockets, but can
some one explain why this https://gist.github.com/714606 idea is bad?
-- Forwarded message --
From: Sid
Date: Wed, Nov 24, 2010 at 4:10 PM
Subject: Re: [Libevent-users] Closing bufferevents sockets f
Hi,
> Hey,
> I understand Simon's view on how not to close buffer event sockets, but
> can some one explain why thishttps://gist.github.com/714606idea is bad?
I don't feel "strongly" that this is incorrect; Simon may have more
information on this. But, basically it is just added overhea
Oh, should mention that depending on what you are trying to do in detail,
you may not want to use bufferevent_free and instead use "shutdown" calls.
I.e. the "correct" way to close a socket (buffer event) is basically the
following (sorry if I'm stating the obvious):
1. Server writes the las