From f719b8a9185d9cf533c91fbd1ef206a7dffad37a Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 3 Sep 2012 21:42:15 +0200 Subject: [PATCH] Stop looping in "consider_reading" if reading is suspended. --- bufferevent_openssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index fdbec280..06e45110 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -783,6 +783,9 @@ consider_reading(struct bufferevent_openssl *bev_ssl) if (r & (OP_BLOCKED|OP_ERR)) break; + if (bev_ssl->bev.read_suspended) + break; + /* Read all pending data. This won't hit the network * again, and will (most importantly) put us in a state * where we don't need to read anything else until the -- 2.50.1