Skip to content

Update (current|pending)RemoteDescription SDP after addIceCandidate#3413

Draft
fippo wants to merge 1 commit intomainfrom
addicecandidate-update-remotedescription
Draft

Update (current|pending)RemoteDescription SDP after addIceCandidate#3413
fippo wants to merge 1 commit intomainfrom
addicecandidate-update-remotedescription

Conversation

@fippo
Copy link
Copy Markdown
Contributor

@fippo fippo commented Apr 17, 2026

@fippo fippo force-pushed the addicecandidate-update-remotedescription branch from a992540 to 85ba51d Compare April 17, 2026 17:33
@fippo
Copy link
Copy Markdown
Contributor Author

fippo commented Apr 17, 2026

@JoTurk 🤔 any idea what causes the test failures? They are either totally uncorrelated or I need to move the test to the go layer...

@JoTurk
Copy link
Copy Markdown
Member

JoTurk commented Apr 17, 2026

@fippo there is a race in attribute.

Comment thread peerconnection.go
Comment on lines +2128 to +2135
if err := pc.pendingRemoteDescription.UpdateWithCandidate(candidate); err != nil {
return err
}
}
if pc.currentRemoteDescription != nil {
if err := pc.currentRemoteDescription.UpdateWithCandidate(candidate); err != nil {
return err
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This updates the candidates' attributes while startRTP is reading them. which cases the test to fail with race detected.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but why does startRtp look at the candidates in the SDP instead of getting them from the ICE agent? Also why does anything RTP not consider ICE a virtual socket? 🤔

@fippo fippo marked this pull request as draft April 22, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants