remove hard coded default window size for HTTP/2 connections. (#7333)

This commit is contained in:
Sujal Singh 2024-11-18 15:24:14 +05:30 committed by GitHub
parent fd346055b7
commit 2d68a5246a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ class BufferedH2Connection(h2.connection.H2Connection):
super().initiate_connection() super().initiate_connection()
# We increase the flow-control window for new streams with a setting, # We increase the flow-control window for new streams with a setting,
# but we need to increase the overall connection flow-control window as well. # but we need to increase the overall connection flow-control window as well.
self.increment_flow_control_window(2**31 - 1 - 65535) # maximum - default self.increment_flow_control_window(
2**31 - 1 - self.inbound_flow_control_window
) # maximum - default
def send_data( def send_data(
self, self,