Skip to content

bug: Log errors on clear shutdown #3799

@izderadicka

Description

@izderadicka

Describe the bug

I'm trying local only setup - without relay and with mdns discovery only.

This is how I setup endpoint:

let mdns = MdnsDiscovery::builder();
    let builder = Endpoint::builder()
    .relay_mode(iroh::RelayMode::Disabled)
    .clear_discovery()
    .discovery(mdns);
    let endpoint = builder.bind().await?;

Using then with basic blob example

On receive part I got some errors in log - took me while to realize that they are same on sending side and related to shutdown process ( thought somehing went wrong with transfer, so spent some time playing around).

When RelayMode::Default is used errors disappear - guess it not anything substantial - but just confusing when you look into log.

Relevant Logs
Errors only

2025-12-22T11:10:21.396539Z ERROR iroh::magicsock::transports::relay: relay_recv_channel closed
2025-12-22T11:10:21.396682Z ERROR iroh_quinn::endpoint: I/O error: connection closed

With some degug around:

2025-12-22T11:25:26.982689Z DEBUG iroh::endpoint: Connections closed
2025-12-22T11:25:26.982870Z DEBUG relay-actor: iroh::magicsock::transports::relay::actor: shutting down
2025-12-22T11:25:26.982905Z DEBUG actor: iroh::magicsock: shutting down
2025-12-22T11:25:26.982927Z DEBUG relay-actor: iroh::magicsock::transports::relay::actor: 0 active relay conns
2025-12-22T11:25:26.983069Z ERROR iroh::magicsock::transports::relay: relay_recv_channel closed
2025-12-22T11:25:26.983110Z ERROR iroh_quinn::endpoint: I/O error: connection closed
2025-12-22T11:25:26.983127Z DEBUG iroh::protocol: Shutting down remaining tasks
2025-12-22T11:25:26.983489Z DEBUG swarm-discovery.actor: acto::tokio: aborting name=ActoId(0) handle=true

Expected behavior
As I believe my setup is correct should not see errors in log on clear shutdown.

Iroh

Version:
[dependencies]
anyhow = "1.0.100"
clap = { version = "4.5.53", features = ["derive"] }
iroh = {version="0.95.1", features = ["discovery-local-network"]}
iroh-blobs = "0.97.0"
tokio = "1.48.0"
tracing-subscriber = "0.3.22"

Endpoint configuration: see above

Platform(s)
Desktop:

  • OS: Linux Ubuntu
  • Version: 22.04.5 LTS

Additional Context / Screenshots / GIFs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions