Skip to content

Closed stream is polled causing debug assertion to fail for WebTransport in wasm #5618

@fl0rek

Description

@fl0rek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions