[Libevent-users] bufferevent openssl deadlock

2012-02-24 Thread Amarin Phaosawasdi
Hello, About a year ago, there was a thread about deadlocking in bufferevent_openssl in multi-threaded mode ( http://archives.seul.org/libevent/users/Jan-2011/msg00019.html). We've run into the same problem. Our minimal fix (as opposed to the patch mentioned, which adds atomic operations to evth

Re: [Libevent-users] possible file descriptor leak

2012-02-23 Thread Amarin Phaosawasdi
Hi Nick, The fix worked, thank you! Amarin On Tue, Feb 21, 2012 at 7:42 PM, Nick Mathewson wrote: > On Tue, Feb 21, 2012 at 8:17 PM, Amarin Phaosawasdi > wrote: > > We've written a very simple client and server in Libevent. > [...] > > Is this expected behavior?

[Libevent-users] possible file descriptor leak

2012-02-21 Thread Amarin Phaosawasdi
We've written a very simple client and server in Libevent. When we start up the server and have the client make thousands of requests to the server, the client eventually ends with a "too many open files" error. (The system that ran this had the ulimit set to 4096.) This only happens at the clien

Re: [Libevent-users] Problems with deferred HTTP handlers over SSL

2012-01-13 Thread Amarin Phaosawasdi
uild your code against libevent release-2.0.16-stable > and > > libevhtp 0.4.5 and dynamically linked it with OpenSSL 0.9.8 on my Mac. > > > > In friendly letters all my browsers say "hello". > > > > > > Oscar > > > > > > On 13/1/12

[Libevent-users] Problems with deferred HTTP handlers over SSL

2012-01-13 Thread Amarin Phaosawasdi
Hi All, We're working on fixing an issue with one of our servers, which serves HTTPS requests on one end, and makes asynchronous RPCs on the other end. The server uses libevhtp to serve HTTPS requests. But since it is also based on libevent and we suspect it might have something to do with buffer