Mplex: change new stream channel size
To `0`, i.e. no unbuffered, to avoid growing buffer size.
This commit is contained in:
parent
1e7d5c73ee
commit
64c9c48dac
|
@ -66,7 +66,7 @@ class Mplex(IMuxedConn):
|
|||
self.streams = {}
|
||||
self.streams_lock = trio.Lock()
|
||||
self.streams_msg_channels = {}
|
||||
channels = trio.open_memory_channel[IMuxedStream](math.inf)
|
||||
channels = trio.open_memory_channel[IMuxedStream](0)
|
||||
self.new_stream_send_channel, self.new_stream_receive_channel = channels
|
||||
self.event_shutting_down = trio.Event()
|
||||
self.event_closed = trio.Event()
|
||||
|
|
Loading…
Reference in New Issue
Block a user