[Libevent-users] Re: Cleanly free-ing OpenSSL bufferevents

2012-03-07 Thread Diwaker Gupta
On Wed, Mar 7, 2012 at 1:24 PM, Diwaker Gupta wrote: > From > http://www.wangafu.net/~nickm/libevent-book/Ref6a_advanced_bufferevents.html: > > "Note that when BEV_OPT_CLOSE_ON_FREE is set on a SSL bufferevent, a > clean shutdown will not be performed on the SSL connection. This has > two problem

[Libevent-users] Cleanly free-ing OpenSSL bufferevents

2012-03-07 Thread Diwaker Gupta
>From >http://www.wangafu.net/~nickm/libevent-book/Ref6a_advanced_bufferevents.html: "Note that when BEV_OPT_CLOSE_ON_FREE is set on a SSL bufferevent, a clean shutdown will not be performed on the SSL connection. This has two problems: first, the connection will seem to have been "broken" by the

Re: [Libevent-users] OpenSSL-based bufferevents

2012-03-07 Thread Diwaker Gupta
> I haven't measured the performance difference, but I suspect it's > real.  The filtering case involves another layer of buffering, > copying, and callbacks, and those typically matter.  Then again, it > could be that crypto dominates the performance.  In either case, > there's less machinery to g

Re: [Libevent-users] OpenSSL-based bufferevents

2012-03-07 Thread Nick Mathewson
On Tue, Mar 6, 2012 at 2:20 PM, Diwaker Gupta wrote: > I'm trying to figure out the best practice when it comes to OpenSSL > based bufferevents. For reference, I'm looking at the source code as > well as > http://www.wangafu.net/~nickm/libevent-book/Ref6a_advanced_bufferevents.html > > As backgro