Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change bufferevent_openssl::do_write so it doesn't call SSL_write wit…
…h a 0 length buffer I was running into a problem when using bufferevent_openssl with a very simple echo server. My server simply bufferevent_read_buffer 'd data into an evbuffer and then passed that evbuffer straight to bufferevent_write_buffer. The problem was every now and again the write would fail for no apparent reason. I tracked it down to SSL_write being called with the amount of data to send being 0. This patch alters do_write in bufferevent_openssl so that it skips io_vecs with 0 length.
- Loading branch information