mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
clear read watermark on underlying bufferevent when creating filtering bev to fix potentially failing fragmented ssl handshakes
This commit is contained in:
parent
6476d92d10
commit
54f7e61ba3
@ -1249,6 +1249,7 @@ bufferevent_openssl_new_impl(struct event_base *base,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (underlying) {
|
if (underlying) {
|
||||||
|
bufferevent_setwatermark(underlying, EV_READ, 0, 0);
|
||||||
bufferevent_enable(underlying, EV_READ|EV_WRITE);
|
bufferevent_enable(underlying, EV_READ|EV_WRITE);
|
||||||
if (state == BUFFEREVENT_SSL_OPEN)
|
if (state == BUFFEREVENT_SSL_OPEN)
|
||||||
bufferevent_suspend_read(underlying,
|
bufferevent_suspend_read(underlying,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user