Re: [Libevent-users] bev_ssl: Be more specific in event callbacks

2011-11-24 Thread Nick Mathewson
On Mon, Nov 21, 2011 at 8:04 PM, Catalin Patulea wrote: [...] > bev_ssl currently only reports EVENT_EOF when the connection is > closed, so it confuses evhttp. This patch makes bev_ssl additionally > set one of BEV_EVENT_{READING|WRITING}, as appropriate, when the > connection is closed. The pat

[Libevent-users] bev_ssl: Be more specific in event callbacks

2011-11-21 Thread Catalin Patulea
evhttp is very strict when checking the event flags while reading the response body: evhttp_error_cb(struct bufferevent *bufev, short what, void *arg) { case EVCON_READING_BODY: if (!req->chunked && req->ntoread < 0 && what == (BEV_EVENT_READING|BEV_EVE