[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: Fwd: [Libevent-users] Using libevent in multi-threaded server
On Fri, Dec 8, 2017 at 1:36 PM, Leif Thuresson <leif.thuresson@xxxxxxxx> wrote:
> Hi Azat,
> Thanks for your reply.
> Using one event_base per thread is an idea I haven't thought of -
> Interesting.
> One drawback that comes to mind with this design is that a network
> connection
> will stay with the same thread forever.
If you need, you can move it into another event_base later, just
remove all active events, and then re-add that events into another
event_base.
> About bufferevents and built-in openssl support.
> Yes I looked at this and it would certainly simply my code, but with
> my original design idea all the SSL encryption would have been done in the
> thread running the event_base so that's why I ruled it out.
Do you have any pros for this idea?
Azat.
P.S. please do not use top-posting.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.