diff --git a/hyper/common/bufsocket.py b/hyper/common/bufsocket.py index b35393af..854681ca 100644 --- a/hyper/common/bufsocket.py +++ b/hyper/common/bufsocket.py @@ -138,7 +138,7 @@ def recv(self, amt): else: should_read = True - if (self._remaining_capacity > self._bytes_in_buffer and should_read): + if should_read: count = self._sck.recv_into(self._buffer_view[self._buffer_end:]) # The socket just got closed. We should throw an exception if we