-
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
webrtc: add a test for establishing many connections #2801
Conversation
ad84c06
to
8fcca64
Compare
p2p/transport/webrtc/listener.go
Outdated
pc.OnConnectionStateChange(func(_ webrtc.PeerConnectionState) { | ||
switch pc.ConnectionState() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works fine, but the change makes it better in case there are ordering issues for the callback. The callback does need to guarantee that we can access connection state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently it doesn't work fine. pion/webrtc#2702 (comment)
So we do need this change.
24f7760
to
5a485d6
Compare
return | ||
} | ||
s.Write(b[:]) | ||
s.Read(b[:]) // peer will close the connection after read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we expect an error here then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a check.
3c3731a
to
64836ad
Compare
22aa5d5
to
a611a26
Compare
8ca8216
to
fdb80f5
Compare
5649cab
to
e529aa9
Compare
2ade25d
to
e30aab2
Compare
Update pion/ice to include the fix for out of order ConnectionState update callbacks
Update pion/ice to include the fix for out of order ConnectionState update callbacks
* identify: Don't filter addr if remote is neither public nor private (#2820) Updates the filterAddrs logic to no-op if the address is neither public nor private. This fixes an issue in mocknet that assigns each node an address in the IPv6 discard prefix space. That doesn't interact well with this logic in identify. The issue mocknet hits is that it filters out all received listen addresses and then doesn't remember any address for the peer. * identify: fix bug in observed address handling (#2825) * identify: add test for observed address handling (#2828) This modifies TestObservedAddrManager to verify the fix in #2825 * libp2phttp: workaround for ResponseWriter's CloseNotifier (#2821) * libp2phttp: workaround for CloseNotifier * Add lintignore * circuitv2: improve voucher validation (#2826) * webrtc: fix ufrag prefix for dialing (#2832) * webrtc: add a test for establishing many connections (#2801) Update pion/ice to include the fix for out of order ConnectionState update callbacks * release v0.35.1 --------- Co-authored-by: Marco Munizaga <git@marcopolo.io> Co-authored-by: Ivan Shvedunov <ivan4th@users.noreply.github.com>
Update pion/ice to include the fix for out of order ConnectionState update callbacks
Update pion/ice to include the fix for out of order ConnectionState update callbacks
No description provided.