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

2013-04-25 Thread Nick Mathewson
On Thu, Apr 25, 2013 at 5:23 PM, John wrote: > Nick, > > I have made my code capable of running multiple sets of single-threaded SSL > bufferevent+event_base (i.e. works with current libevent 2.0) as well as able > to run fully multithreaded (breaks with current libevent 2.0) I will be happy >

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

2013-04-25 Thread John
probably be a better stress test than the simple test software I posted before. Thanks, -John From: Nick Mathewson To: libevent-us...@freehaven.net; John Sent: Thursday, April 25, 2013 11:36 AM Subject: Re: [Libevent-users] Simple question about multithreading SSL

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

2013-04-25 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. FWIW, I can confirm that my current "21_deadlock_fix" branch makes your example code

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

2013-03-28 Thread Nick Mathewson
On Wed, Mar 27, 2013 at 5:06 PM, John wrote: > You can see the test code at > > http://pastebin.com/0136vEbe > Yup, that's a deadlock. Reproducible too. Thanks! The main thread got stuck in #0 0x0030c8c0de4d in __lll_lock_wait () from /lib64/libpthread.so.0 #1 0x0030c8c09cc1 in _L_lo

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

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
essier/Chandra. Thanks, -John - Original Message - From: Mark Ellzey To: libevent-us...@freehaven.net Cc: Sent: Wednesday, March 27, 2013 7:23 AM Subject: Re: [Libevent-users] Simple question about multithreading SSL bufferevents. On Tue, Mar 26, 2013 at 03:32:17PM -0700, John wrote:

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 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.