uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

peerconnection.ts should look at oniceconnectionstatechange events, not onsignalingstatechange

Open trevj opened this issue 12 years ago • 9 comments

So, this came up while playing with getStats and after having reported this issue to the WebRTC team: https://code.google.com/p/webrtc/issues/detail?id=3665

Basically, what peerconnection.ts does now is listen for an approximation of when the connection has been successfully established:

if (this.pc_.signalingState === 'stable') {
  this.completeConnection_();
}

That's why our adapter.js needs the silly looping code in its getStats call to inspect the connection endpoints -- the connection hasn't actually been reported stable yet.

trevj avatar Oct 03 '14 15:10 trevj

We wanted to take out those three lines, and instead the connection will complete when the control data channel is ready. (Pull request here https://github.com/uProxy/uproxy-lib/pull/81) Will that affect this issue?

lucyhe avatar Oct 20 '14 14:10 lucyhe

If we use a control data channel to monitor the connection state, then that would close this issue.

iislucas avatar Oct 20 '14 20:10 iislucas

Dropping priority since we're now using the control channel to determine when the peerconnection is up and down.

trevj avatar Oct 27 '14 15:10 trevj

@bemasc you have pull request out to fix this but perhaps it's obsolete now?

trevj avatar Nov 06 '14 16:11 trevj

Moving this to Baxter since it doesn't seem to be an issue for initial release.

trevj avatar Nov 19 '14 19:11 trevj

This is fixed in uproxy-lib 17.0.1.

bemasc avatar Dec 17 '14 22:12 bemasc

Awesome. Thanks for merging and republishing.

On 17 December 2014 at 17:59, Benjamin M. Schwartz <[email protected]

wrote:

This is fixed in uproxy-lib 17.0.1.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/433#issuecomment-67412918.

Trevor Johnston Software Engineer, Google New York

trevj avatar Dec 18 '14 21:12 trevj

(To be clear, if uproxy wants to guarantee the fix, it'll need a dependency version bump.)

bemasc avatar Dec 19 '14 00:12 bemasc

Fixed by this commit: https://github.com/uProxy/uproxy-lib/commit/322116bc7f31f90846ba989d62f6529bf58332c5

trevj avatar Feb 17 '15 16:02 trevj