From 7353663eb7c0b2a1caaaa5acd818515f156cf2ca Mon Sep 17 00:00:00 2001 From: Mark Ellzey Date: Mon, 14 Nov 2011 10:57:15 -0500 Subject: [PATCH] openssl bufferevent has the same issue with writing as prior commit. --- bufferevent_openssl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index 3843b314..8f2c3dfd 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -759,7 +759,7 @@ consider_writing(struct bufferevent_openssl *bev_ssl) target = bev_ssl->underlying->output; 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) && evbuffer_get_length(output) && (!target || (! wm->high || evbuffer_get_length(target) < wm->high))) { @@ -769,8 +769,6 @@ consider_writing(struct bufferevent_openssl *bev_ssl) else n_to_write = WRITE_FRAME; r = do_write(bev_ssl, n_to_write); - if (r <= 0) - break; } if (!bev_ssl->underlying) { -- 2.40.0