Skip to content

bug: Endpoint not closing gracefully with "relay_recv_channel closed" present in logs #3749

@matheus23

Description

@matheus23

Describe the bug

Even though the client side calls Endpoint::close().await, the connection doesn't close gracefully and instead times out.

Relevant Logs

ERROR iroh::magicsock::transports::relay: relay_recv_channel closed
ERROR iroh_quinn::endpoint: I/O error: connection closed

Expected behavior

Closing the endpoint on the client side should gracefully close the connection on the server side as well.
The expected behavior can be reinstated by reverting #3601

Iroh

Version: 0.95.1 doesn't work,
version 0.95.1 with #3601 reverted works.

To reproduce add client_endpoint.close().await; after this line https://github.com/n0-computer/irpc/blob/732a57fc26689da87fd5078442fc33bc54e4001c/irpc-iroh/examples/derive.rs#L48

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions