Re: [Libevent-users] SSL NPN with libevent

2012-10-10 Thread Mark Ellzey
On Wed, Oct 10, 2012 at 01:19:31PM -0400, Programmist Setevik wrote: > Is there an easy/supported way to have OpenSSL 1.x perform NPN negotiation > while using libevent's support for OpenSSL ? > Need to be told what SSL ended up selecting , from the proposed list of > protos. > > Any code examples

Re: [Libevent-users] Multi-threading question

2012-10-10 Thread Mark Ellzey
On Wed, Oct 10, 2012 at 01:16:20PM -0400, Programmist Setevik wrote: > Mark - > > that each worker performs independent accept() - by monitoring the shared > listener FD on its own event_base ? > This. *** To unsubscribe, send

Re: [Libevent-users] Multi-threading question

2012-10-10 Thread Programmist Setevik
Mark - do you mean that you *do* use a dedicated "accept()or" thread than passes newly accepted sockets to one of N worker threads, that then the chosen worker thread registers the FD with it's own event_base ^^^ what I don't want to do OR that each worker performs independent accept() - by mo

Re: [Libevent-users] Multi-threading question

2012-10-10 Thread David Goulet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 NotDashEscaped: You need GnuPG to verify this message Programmist Setevik: > I have a "multiplexed multi-threaded" network IO program that > been working just fine for a long while. It is a typical hand-coded > epoll-driven, as opposed to libeve

Re: [Libevent-users] Multi-threading question

2012-10-10 Thread Mark Ellzey
On Tue, Oct 09, 2012 at 06:22:08PM -0400, Programmist Setevik wrote: > 1) "Main" thread that does something like this, (pseudo code): > > for ( all configured listen ports) { > FD = socket() > bind() > set non-block() > listen > add FD to a list > > } > > for (configurable # of worker thr