[Libevent-users] Deprecated functions and their replacements

2013-03-27 Thread Grega Kres
Hello, just a few quick questions about some deprecated functions. According to this list: http://www.wangafu.net/~nickm/libevent-2.1/doxygen/html/deprecated.html event_init is deprecated and event_base_new should be used. That's OK. Another one is evhttp_connection_new which is on the list as w

Re: [Libevent-users] Simple question about multithreading SSL bufferevents.

2013-03-27 Thread Mark Ellzey
On Tue, Mar 26, 2013 at 03:32:17PM -0700, John wrote: > Hello all, > > I am having significant issues with (near immediate) deadlock when trying to > send data out a single openssl bufferevent from two separate threads. The > individual threads themselves send complete messages with each write.

Re: [Libevent-users] Simple question about multithreading SSL bufferevents.

2013-03-27 Thread Nick Mathewson
On Tue, Mar 26, 2013 at 6:32 PM, John wrote: > Hello all, > > I am having significant issues with (near immediate) deadlock when trying to > send data out a single openssl bufferevent from two separate threads. The > individual threads themselves send complete messages with each write. This > s

Re: [Libevent-users] Simple question about multithreading SSL bufferevents.

2013-03-27 Thread John
Mark, Yes, I have enabled OpenSSL locking, including setting up dynamic locking. I have verified the locks are "running" by watching the various lock callbacks occuring. I "stole" the locking code from the book "Network Security with OpenSSL", by Viega/Messier/Chandra. Thanks, -John - Or

Re: [Libevent-users] Deprecated functions and their replacements

2013-03-27 Thread Nick Mathewson
On Wed, Mar 27, 2013 at 6:45 AM, Grega Kres wrote: > Hello, > > just a few quick questions about some deprecated functions. According > to this list: > http://www.wangafu.net/~nickm/libevent-2.1/doxygen/html/deprecated.html > event_init is deprecated and event_base_new should be used. That's OK.

Re: [Libevent-users] Simple question about multithreading SSL bufferevents.

2013-03-27 Thread Mark Ellzey
On Tue, Mar 26, 2013 at 03:32:17PM -0700, John wrote: > I would be happy to share my test code- but it is ~300ish lines due to > (primarily) openssl and thread initialization. Please make a gist or a patebin. *** To unsubscribe,

Re: [Libevent-users] Simple question about multithreading SSL bufferevents.

2013-03-27 Thread John
You can see the test code at http://pastebin.com/0136vEbe -John - Original Message - From: Mark Ellzey To: libevent-us...@freehaven.net Cc: Sent: Wednesday, March 27, 2013 11:20 AM Subject: Re: [Libevent-users] Simple question about multithreading SSL bufferevents. On Tue, Mar 26,