mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
openssl bufferevent has the same issue with writing as prior commit.
This commit is contained in:
parent
fc52dbac87
commit
7353663eb7
@ -759,7 +759,7 @@ consider_writing(struct bufferevent_openssl *bev_ssl)
|
|||||||
target = bev_ssl->underlying->output;
|
target = bev_ssl->underlying->output;
|
||||||
wm = &bev_ssl->underlying->wm_write;
|
wm = &bev_ssl->underlying->wm_write;
|
||||||
}
|
}
|
||||||
while ((bev_ssl->bev.bev.enabled & EV_WRITE) &&
|
if ((bev_ssl->bev.bev.enabled & EV_WRITE) &&
|
||||||
(! bev_ssl->bev.write_suspended) &&
|
(! bev_ssl->bev.write_suspended) &&
|
||||||
evbuffer_get_length(output) &&
|
evbuffer_get_length(output) &&
|
||||||
(!target || (! wm->high || evbuffer_get_length(target) < wm->high))) {
|
(!target || (! wm->high || evbuffer_get_length(target) < wm->high))) {
|
||||||
@ -769,8 +769,6 @@ consider_writing(struct bufferevent_openssl *bev_ssl)
|
|||||||
else
|
else
|
||||||
n_to_write = WRITE_FRAME;
|
n_to_write = WRITE_FRAME;
|
||||||
r = do_write(bev_ssl, n_to_write);
|
r = do_write(bev_ssl, n_to_write);
|
||||||
if (r <= 0)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bev_ssl->underlying) {
|
if (!bev_ssl->underlying) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user