Autonat + Quic Fails on Localhost
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.6k
- Forks
- 1.3k
- Avg merge
- 8h 47m
- Merged PRs (30d)
- 19
Description
Summary
I have two nodes (iroh) running on localhost. When A dials B on quic-v1 and the autonat protocol is enabled the connection is established but killed again very shortly after, when autonat is disabled, the connection stays established
In the logs of the dialing node I found
2023-01-05T21:17:48.345168Z DEBUG libp2p_autonat::behaviour::as_server: Reject inbound dial request from peer 12D3KooWMgMs3K6DeWBRTmRGEk27h22ZZUh5r8FMs7isVHPCKZox: refusing to dial peer with blocked observed address.
at /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-autonat-0.9.0/src/behaviour/as_server.rs:144
and on the other node it gets into a state of printing these messages over and over again
2023-01-05T21:23:23.933938Z DEBUG libp2p_quic::endpoint: Dropping packet for connection ConnectionHandle(0) because the connection's channel is full.
at /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-quic-0.7.0-alpha/src/endpoint.rs:510
2023-01-05T21:23:23.937812Z DEBUG libp2p_quic::endpoint: Dropping packet for connection ConnectionHandle(0) because the connection's channel is full.
at /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-quic-0.7.0-alpha/src/endpoint.rs:510
2023-01-05T21:23:23.939190Z DEBUG libp2p_quic::endpoint: Dropping packet for connection ConnectionHandle(0) because the connection's channel is full.
at /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-quic-0.7.0-alpha/src/endpoint.rs:510
2023-01-05T21:23:23.946320Z DEBUG libp2p_quic::endpoint: Dropping packet for connection ConnectionHandle(0) because the connection's channel is full.
at /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-quic-0.7.0-alpha/src/endpoint.rs:510
2023-01-05T21:23:23.947716Z DEBUG libp2p_quic::endpoint: Dropping packet for connection ConnectionHandle(0) because the connection's channel is full.
at /Users/dignifiedquire/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-quic-0.7.0-alpha/src/endpoint.rs:510
Version
- libp2p version:
0.50.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with two localhost iroh nodes using quic-v1 and autonat enabled, then start by reading the logged paths in libp2p-autonat's behaviour/as_server.rs and libp2p-quic's endpoint.rs. Compare the connection and logs with autonat disabled. Done means the connection stays established without repeated "channel is full" packet drops.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100