Skip to content
Browse files

Stop looping in "consider_reading" if reading is suspended.

  • Loading branch information...
1 parent b7f6e89 commit 4a1599c511f1395663aeb0916948c1676ebdf622 @fancycode committed Sep 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 bufferevent_openssl.c
View
3 bufferevent_openssl.c
@@ -786,6 +786,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

0 comments on commit 4a1599c

Please sign in to comment.
Something went wrong with that request. Please try again.