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
Race condition between createOffer and setIdentityProvider #1184
Comments
I think that you have fixed that problem in #875. The process for generating an identity assertion is started synchronously. Provider a is used. |
You're right... But what if you call This could be fixed pretty trivially by storing a reference to the identity provider in the synchronous part, and saying "generate an offer according to JSEP, using the identity assertion from provider if provider is defined". |
If you change identity provider, the result from the first shouldn't be relevant at the point you call In practice, I expect that the first (BTW, I think that in Firefox |
I could easily live with this race condition not be fixed or specified ... it's not hard for the JS to avoid the problem. |
Fixes w3c#1184. This cleans things up slightly, and fixes a corner case race condition, where in the following sequence: ``` pc.setIdentityProvider(a); pc.createOffer().then(...); pc.setIdentityProvider(b); pc.createOffer().then(...); ``` It wasn't completely clear if the first `createOffer` would use the assertion from `a` or `b`. The answer now is "it will use `a`".
Fixes w3c#1184. This cleans things up slightly, and fixes a corner case race condition, where in the following sequence: ``` pc.setIdentityProvider(a); pc.createOffer().then(...); pc.setIdentityProvider(b); pc.createOffer().then(...); ``` It wasn't completely clear if the first `createOffer` would use the assertion from `a` or `b`. The answer now is "it will use `a`".
Suppose an application does:
Is there a guarantee which identity provider will be used to generate "a=identity"?
Note that I already tried to fix the
createOffer
race conditions here: #875But this one may still exist.
The text was updated successfully, but these errors were encountered: