Summary
I'm connecting to a peer over WebTransport in a browser. When running release builds app is behaving correctly. Debug builds (including tests) on the other hand fail shortly after connecting. In browser console I see panic, which seems to be coming from this debug_assert. Additionally when I change the debug_assert to panic, release builds also fail.
Rest of the libp2p seems to continue in a degraded state, as I see logs from e.g. running behaviours.
Expected behavior
I expected debug builds to work same as release, where the behaviour is able to correctly send the request and get a response.
Actual behavior
Behaviour seems to hang indefinitely, I'm guessing it's waiting to send/flush
Relevant log output
No response
Possible Solution
I guess removing the assert or making sure that closed stream isn't polled would fix it, but I don't know enough about libp2p to know which would be the correct solution.
Version
tag: v0.54.1
Would you like to work on fixing this bug ?
Yes