Re: [Libevent-users] SSL support in evhttp.h

2010-07-29 Thread Zhuang Yuyao
; trick has no other realistic usage now except getting https to work. but i think expose this interface maybe useful under other situations, for example, some bufferevent filters can be applied at this point. Best regards, Zhuang Yuyao ***

Re: [Libevent-users] SSL support in evhttp.h

2010-07-28 Thread Zhuang Yuyao
hi, here is my patch and sample code for libevent 2.0 to add ssl support to evhttp. the trick is to allow the caller to set bufev of struct evhttp_connection. Best regards, Zhuang Yuyao On Thu, Jul 29, 2010 at 12:26 AM, Nick Mathewson wrote: > On Wed, Jul 28, 2010 at 9:10 AM, Graham Legg

[Libevent-users] Re: [HELP] How to safely free a defer callback bufferevent in readcb

2010-06-02 Thread Zhuang Yuyao
x27;m using openssl 0.9.8n, libevent 2.0.5-beta Any advice will be appreciated. Thanks very much. On Mon, May 31, 2010 at 4:48 PM, Zhuang Yuyao wrote: > Hi, > > I am working on a http proxy program based on le-proxy. the proxy has > a feature to block requests to some special urls, the

[Libevent-users] [HELP] How to safely free a defer callback bufferevent in readcb

2010-05-31 Thread Zhuang Yuyao
Hi, I am working on a http proxy program based on le-proxy. the proxy has a feature to block requests to some special urls, then return to the client a 403 forbidden or 302 redirect response. I tried to do it in bufferevent readcb, here are the code sample i wrote: static void readcb(struct buff

[Libevent-users] [PATCH] evdns lock violation while thread is used

2009-11-25 Thread Zhuang Yuyao
this mail solved this problem on my machine. Best regards, Zhuang Yuyao 110-evdns-thread-lock.patch Description: Binary data