Skip to content
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

ice-restart: fix functionality #1534

Merged
merged 3 commits into from
Apr 6, 2022
Merged

ice-restart: fix functionality #1534

merged 3 commits into from
Apr 6, 2022

Conversation

fippo
Copy link
Collaborator

@fippo fippo commented Apr 4, 2022

by listening to the transport selectedcandidatepairchange event.
This sample has been relying on the somewhat buggy but useful behavior
of the "legacy" iceconnectionstatechange firing a "connected" event even
if the previous state was already connected.

This behavior is no longer supported in the spec iceconnectionstatechange
event. Alternatively listen to the selectedcandidatepairchange event and
determine the availability of new candidates based on that

@fippo fippo force-pushed the restart-fix branch 3 times, most recently from cfb242c to d2dff30 Compare April 4, 2022 13:31
@@ -30,7 +30,7 @@
],
"devDependencies": {
"chai": "^4.3.6",
"chromedriver": "^98.0.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

drive-by fix, otherwise chromedriver gets stuck on a version incompatible with the chrome version that gets installed

@@ -15,7 +15,7 @@ let driver;
const path = '/src/content/datachannel/filetransfer/index.html';
const url = `${process.env.BASEURL ? process.env.BASEURL : ('file://' + process.cwd())}${path}`;

describe('datachannel basic', () => {
describe('datachannel filetransfer', () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

drive-by too

@fippo fippo force-pushed the restart-fix branch 3 times, most recently from a5ce2be to 6dc868a Compare April 5, 2022 09:31
@fippo fippo mentioned this pull request Apr 5, 2022
by listening to the transport selectedcandidatepairchange event.
This sample has been relying on the somewhat buggy but useful behavior
of the "legacy" iceconnectionstatechange firing a "connected" event even
if the previous state was already connected.

This behavior is no longer supported in the spec iceconnectionstatechange
event. Alternatively listen to the selectedcandidatepairchange event and
determine the availability of new candidates based on that
a total 5 minute job timeout should be enough and will prevent jobs
from hanging for 30 minutes.
Increase the mocha per-test timeout to five seconds (from the default 2s)
@fippo fippo merged commit d7114f1 into webrtc:gh-pages Apr 6, 2022
@fippo fippo deleted the restart-fix branch April 6, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants