-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pubsub: TestSimpleDiscovery is hanging with go-libp2p 0.36.1 #2910
Comments
It should work on QUIC or TCP only. This patch works for me.
This is a webrtc problem. The connection first succeeds on listener and then on dialer. In our case, the listener thinks it has two connections and the dialer has just 1 connection.
I assumed that there was no way of knowing when webrtc connection closes. But turns out there is. The SCTP association is closed(either via an SCTP Abort or a DTLS abort), but this signal is not propagated by pion yet. We will need to plumb this through pion. For the time being, this PR does something equivalent: #2914 |
Hm. I maybe the issue was that I didn't change the default listen addresses? |
I think not explicitly mentioning the listen address was the problem. |
Fixed by v0.36.2 |
See libp2p/go-libp2p-pubsub#572. This can be readily reproduced locally with
go test -run TestSimpleDiscovery
(it takes a few tries, but it happens pretty regularly). On prior libp2p versions, this test passes in less than a second (very reliably).I tried disabling all transports except the QUIC and/or TCP transport and still ran into the issue, so it's not the new webrtc transport. The tests also pass on 0.35.0.
The text was updated successfully, but these errors were encountered: