Closed p-shahi closed 1 year ago
This could be an issue for rust-libp2p; noting here for now.
After closing a browser tab that's made a webrtc-direct
connection to the rust peer, it seems that the rust webrtc transport sees it's disconnected but no SwarmEvent::ConnectionClosed is received. i.e. rust peer still sends Identify messages at regular intervals
[2023-04-14T04:02:43Z INFO libp2p_webrtc::tokio::substream::drop_listener] Substream 1 dropped without graceful close, sending Reset
[2023-04-14T04:02:48Z INFO webrtc_ice::agent::agent_internal] [controlled]: Setting new connection state: Disconnected
[2023-04-14T04:02:48Z INFO webrtc::peer_connection] ICE connection state changed: disconnected
[2023-04-14T04:02:48Z INFO webrtc::peer_connection] peer connection state changed: disconnected
[2023-04-14T04:02:58Z INFO libp2p_webrtc::tokio::substream::drop_listener] Substream 7 dropped without graceful close, sending Reset
[2023-04-14T04:02:59Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:03:00Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:03:02Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:03:03Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:03:03Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:03:06Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:03:12Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:03:13Z WARN webrtc_ice::agent::agent_internal] [controlled]: Failed to close candidate udp4 prflx 127.0.0.1:64041 related :0: the agent is closed
[2023-04-14T04:03:13Z INFO webrtc_ice::agent::agent_internal] [controlled]: Setting new connection state: Failed
[2023-04-14T04:03:13Z INFO webrtc::peer_connection] ICE connection state changed: failed
[2023-04-14T04:03:13Z INFO webrtc::peer_connection] peer connection state changed: failed
[2023-04-14T04:03:13Z INFO libp2p_webrtc::tokio::substream::drop_listener] Substream 9 dropped without graceful close, sending Reset
[2023-04-14T04:03:28Z INFO libp2p_webrtc::tokio::substream::drop_listener] Substream 11 dropped without graceful close, sending Reset
[2023-04-14T04:03:43Z INFO libp2p_webrtc::tokio::substream::drop_listener] Substream 13 dropped without graceful close, sending Reset
[2023-04-14T04:03:43Z INFO libp2p_webrtc::tokio::substream::drop_listener] Substream 15 dropped without graceful close, sending Reset
[2023-04-14T04:03:43Z INFO rust_libp2p_webrtc_peer] BehaviourEvent::Identify Error { peer_id: PeerId("12D3KooWRhsuzjdci6Em3SezQADf5eKqRFhiQNk8ZHBTeN2HuJpF"), error: Timeout }
[2023-04-14T04:03:43Z INFO rust_libp2p_webrtc_peer] Removed 12D3KooWRhsuzjdci6Em3SezQADf5eKqRFhiQNk8ZHBTeN2HuJpF from the routing table (if it was in there).
[2023-04-14T04:04:45Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:04:46Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:04:49Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:04:50Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:04:53Z WARN webrtc_mdns::conn] Failed to parse mDNS packet parsing/packing of this type isn't available yet
[2023-04-14T04:04:53Z INFO libp2p_webrtc::tokio::substream::drop_listener] Substream 17 dropped without graceful close, sending Reset
[2023-04-14T04:04:53Z INFO rust_libp2p_webrtc_peer] BehaviourEvent::Identify Error { peer_id: PeerId("12D3KooWRhsuzjdci6Em3SezQADf5eKqRFhiQNk8ZHBTeN2HuJpF"), error: Timeout }
[2023-04-14T04:04:53Z INFO rust_libp2p_webrtc_peer] Removed 12D3KooWRhsuzjdci6Em3SezQADf5eKqRFhiQNk8ZHBTeN2HuJpF from the routing table (if it was in there).
MVP was completed
remaining
[x] adding Max's pubkey to ec2
done
Peer ID to connect to
andmultiaddr to connect to
- @maschaddefer
removelan
from kademlia protocol nameclose rust relay connection after 1 minute - @maschad