clear read watermark on underlying bufferevent when creating filtering bev to fix potentially failing fragmented ssl handshakes

This commit is contained in:
Joachim Bauch 2011-08-29 23:39:26 +02:00 committed by Nick Mathewson
parent 6476d92d10
commit 54f7e61ba3

View File

@ -1249,6 +1249,7 @@ bufferevent_openssl_new_impl(struct event_base *base,
}
if (underlying) {
bufferevent_setwatermark(underlying, EV_READ, 0, 0);
bufferevent_enable(underlying, EV_READ|EV_WRITE);
if (state == BUFFEREVENT_SSL_OPEN)
bufferevent_suspend_read(underlying,