Conflicts:
bufferevent_openssl.c
/* Return a bitmask of OP_MADE_PROGRESS (if we read anything); OP_BLOCKED (if
we're now blocked); and OP_ERR (if an error occurred). */
- static int
+static int
do_read(struct bufferevent_openssl *bev_ssl, int n_to_read) {
/* Requires lock */
struct bufferevent *bev = &bev_ssl->bev.bev;
struct evbuffer_iovec space[2];
int result = 0;
+ if (bev_ssl->bev.read_suspended)
+ return 0;
+
atmost = _bufferevent_get_read_max(&bev_ssl->bev);
if (n_to_read > atmost)
n_to_read = atmost;