Commit 5ab9518f158394c9d759e4d897ce5f67d3ec2fba

Azat Khuzhin 2016-11-19T17:08:53

Fix reusing bufferevent_openssl after fd was reseted (i.e. on new connection) For example if you trying to issue multiple requests over the same evhttp_conneciton, and if connection already closed (IOW it should be re-connected), than you will get into trouble since it will got wrong openssl state. This patch addresses this issue by restoring state to initial if SETFD called with -1 fd.