RE: [Libevent-users] How to close bufferevent connection?

2010-05-31 Thread Felix Nawothnig
On Tue, 2010-06-01 at 12:24 +0900, hcpark wrote: > I used > bufferevent_free(bev); Right. Silly me. Felix *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

RE: [Libevent-users] How to close bufferevent connection?

2010-05-31 Thread hcpark
I used bufferevent_free(bev); -Original Message- From: owner-libevent-us...@freehaven.net [mailto:owner-libevent-us...@freehaven.net] On Behalf Of Felix Nawothnig Sent: Tuesday, June 01, 2010 12:07 PM To: libevent-us...@freehaven.net Subject: [Libevent-users] How to close buffere

[Libevent-users] How to close bufferevent connection?

2010-05-31 Thread Felix Nawothnig
Hey. What's the "suggested" way to close a bufferevent connection? Currently I do: fd = bufferevent_getfd(bev); evutil_closesocket(fd); ... followed by a manual: my_event_handler(bev, BEV_EVENT_EOF, NULL); ... because it doesn't seem to be called otherwise. Is this th

[Libevent-users] socket message boundary problem

2010-05-31 Thread Hor Meng Yoong
Hi: I am using libevent2. Is that a wrapper function/library to send and receive fixed length message, or variable length message with message length embedded in the first 2 bytes with libevent2? Thank Regards Hor Meng

[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