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