On Thu, Dec 22, 2011 at 5:31 PM, Catalin Patulea <catal...@google.com> wrote: > Seems like bev_ssl flushes data to SSL_write and notifies back more > eagerly than bev_sock, which is confusing evhttp_send_reply_end.
Thanks Catalin. Based on your comments, I tried moving evhttp_write_buffer() above evbuffer_add() and it does mitigate the issue. > If it is deemed acceptable for a bev to flush and cb from > evbuffer_add, then maybe bev_ssl should also fire a write_cb upon > enable(EV_WRITE) when everything has already been flushed. > > Otherwise (and it seems most of evhttp is built on this assumption), > bev_ssl should never flush anything unless it's being called from the > event loop. I'm interested to hear suggestions for the correct fix. -Andy *********************************************************************** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-users in the body.