Throttle SetRemoteDescription callbacks to avoid racing conditions. |
||
Issue descriptionblink's RTCPeerConnection & friends operate on the main thread, webrtc's SetRemoteDescription and its various callbacks operate on the webrtc signaling thread. Currently, in each callback we jump back to the main thread to do things. This causes race conditions because it's possible that things happen in-between the same SRD's callbacks are being invoked. The solution is to throttle callbacks. When SRD is ready to resolve, that's when we jump over to the main thread and process all the callbacks synchronously.
,
Oct 30 2017
Or if removing the Post doesn't break anything we can invoke SetSessionDescription::OnSuccess immediately, the PeerConnectionInterface does say "The |observer| callback will be called when done.", nothing about it doing a Post.
,
Oct 30 2017
If we pursue https://crbug.com/webrtc/8473 this becomes obsolete, making it blocked on for now. |
||
►
Sign in to add a comment |
||
Comment 1 by hbos@chromium.org
, Oct 27 2017