libp2p / js-libp2p-webtransport

WebTranport module that libp2p uses and that implements the interface-transport spec
Other
15 stars 5 forks source link

WebTransport session establishment failed. Too many pending WebTransport sessions (64) #64

Open achingbrain opened 1 year ago

achingbrain commented 1 year ago

Sometimes I see thousands instances of this warning in Chrome:

WebTransport session establishment failed. Too many pending WebTransport sessions (64)
image

This module may need some sort of dial queue to ensure it doesn't open too many connections and trigger this error.

SgtPooki commented 1 year ago

we need to make sure we leave some webtransport sessions for peers to connect to the helia node

achingbrain commented 1 year ago

WebTransport is only for outgoing connections, not incoming. Only WebRTC can be used to dial in to browser nodes.

We do need to limit the number of in-flight WebTransport connections though, to be under browser limits.