Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 08dd74d

Browse files
authored
Merge pull request #303 from laike9m/development
Removed unnecessary size check
2 parents f8a84cf + e8d4034 commit 08dd74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: hyper/common/bufsocket.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def recv(self, amt):
138138
else:
139139
should_read = True
140140

141-
if (self._remaining_capacity > self._bytes_in_buffer and should_read):
141+
if should_read:
142142
count = self._sck.recv_into(self._buffer_view[self._buffer_end:])
143143

144144
# The socket just got closed. We should throw an exception if we

0 commit comments

Comments
 (0)