]> granicus.if.org Git - libevent/commitdiff
Stop looping in "consider_reading" if reading is suspended.
authorJoachim Bauch <mail@joachim-bauch.de>
Mon, 3 Sep 2012 19:42:15 +0000 (21:42 +0200)
committerNick Mathewson <nickm@torproject.org>
Sat, 22 Sep 2012 22:06:57 +0000 (18:06 -0400)
bufferevent_openssl.c

index fdbec28015aafab252c397766925e89ca064962d..06e45110e289db72649ea5564b441f6245f5508c 100644 (file)
@@ -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