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

Commit eb7afdb

Browse files
committed
Break connection recv loop after 9 iterations (make use of not used count variable)
1 parent 38e528c commit eb7afdb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hyper/http20/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,8 @@ def _recv_cb(self):
722722
except ConnectionResetError:
723723
break
724724

725+
count -= 1
726+
725727
def _send_rst_frame(self, stream_id, error_code):
726728
"""
727729
Send reset stream frame with error code and remove stream from map.

0 commit comments

Comments
 (0)