You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
To provide some colour on this: yamux and mplex allow unlimited streams (well, bounded by the int length of the stream index) but we're not always upgrading connections via those multiplexers.
I guess the original authors of the API go-stream-muxer API assumed that opening a stream is cheap and non-blocking. However, with transports like QUIC, where multiplexing is native, YMMV.
Ways forward
I can think of two:
Change the method signature in the interface, and change the mux adaptors to conform. This implies breakage.
Keep the interface intact and add a new interface, adapting the call sites to type cast and pass the context in accordingly.
I'd prefer 1 -- with gomod the impact should be limited.
Do we need to pass in a context to AcceptStream too?
This could block on some systems that restrict the number of open streams.
The text was updated successfully, but these errors were encountered: