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

fix(preload): Fix load interruption #6271

Merged
merged 3 commits into from Feb 21, 2024

Conversation

joeyparrish
Copy link
Member

Interrupting load() was causing two concurrent sets of load() operations to happen at once, which led the asset URI for the second operation to be overwritten by the first.

This was exposed by a test failure on Safari. There is nothing special about Safari, but the timing happened to work out such that the concurrent load() calls would intefere with each other.

This fixes the issue by acquiring the mutex in load() for the preloadManager.start() operation.

This issue did not affect any releases.

Closes #6225

Interrupting load() was causing two concurrent sets of load() operations to
happen at once, which led the asset URI for the second operation to be
overwritten by the first.

This was exposed by a test failure on Safari.  There is nothing special about
Safari, but the timing happened to work out such that the concurrent load()
calls would intefere with each other.

This fixes the issue by acquiring the mutex in load() for the
preloadManager.start() operation.

This issue did not affect any releases.

Closes shaka-project#6225
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@joeyparrish joeyparrish merged commit d795a00 into shaka-project:main Feb 21, 2024
14 of 15 checks passed
@joeyparrish joeyparrish deleted the fix-load-interruption branch February 21, 2024 23:29
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 21, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preload test failure on Safari
3 participants