Skip to content

Commit

Permalink
Stop looping in "consider_reading" if reading is suspended.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode authored and nmathewson committed Sep 22, 2012
1 parent f2bff75 commit f719b8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bufferevent_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f719b8a

Please sign in to comment.