Skip to content

Commit

Permalink
feat: change MAX_CONCURRENT_STREAMS from 1000 to 65536
Browse files Browse the repository at this point in the history
  • Loading branch information
standy66 committed Feb 15, 2019
1 parent 0019d8c commit d2d461f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/purerpc/grpclib/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@ class GRPCConnection:
MAX_HEADER_LIST_SIZE = 8192
MAX_CONCURRENT_STREAMS = 2 ** 16
MAX_INBOUND_FRAME_SIZE = 2 ** 24 - 1
MAX_CONCURRENT_STREAMS = 1000

def __init__(self, config: GRPCConfiguration):
self.config = config
self.h2_connection = h2.connection.H2Connection(config._h2_config)
self._monkey_patch_h2_connection()
self._set_h2_connection_local_settings()
self.message_read_buffers = {}

def _monkey_patch_h2_connection(self):
def _set_h2_connection_local_settings(self):
self.h2_connection.local_settings = h2.settings.Settings(
client=self.config.client_side,
initial_values={
Expand Down

0 comments on commit d2d461f

Please sign in to comment.