Skip to content

Increase PO token snapshot timeout from 3 to 10 seconds#7114

Merged
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:bg-timeout
Apr 7, 2025
Merged

Increase PO token snapshot timeout from 3 to 10 seconds#7114
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:bg-timeout

Conversation

@absidue
Copy link
Member

@absidue absidue commented Mar 30, 2025

Increase PO token snapshot timeout from 3 to 10 seconds

Pull Request Type

  • Bugfix

Related issue

Description

By default bgutils-js times out the snapshot method after 3 seconds to avoid it blocking forever in case something goes wrong, however it seems like some of our users have encountered legitimate scenarios where the snapshot method will run longer than 3 seconds. In the linked issue one user was running the x64 build of FreeTube on an arm64 Mac, so the translation overhead likely resulted in FreeTube running slower.

Testing

While I haven't personally encountered a timeout from the snapshot method, I decided that jumping to 10 seconds should give it enough time even on slower setups while still achieving the goal of preventing it from blocking forever.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 4ef333d

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 30, 2025
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) March 30, 2025 11:35
@PikachuEXE
Copy link
Member

@ChunkyProgrammer ~

@FreeTubeBot FreeTubeBot merged commit 9e05ae8 into FreeTubeApp:development Apr 7, 2025
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 7, 2025
@absidue absidue deleted the bg-timeout branch April 7, 2025 11:09
efb4f5ff-1298-471a-8973-3d47447115dc pushed a commit to efb4f5ff-1298-471a-8973-3d47447115dc/FreeTube that referenced this pull request Jul 12, 2025
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.

[Bug]: Error invoking remote method 'generate-po-tokens': Error: VM operation timed out

5 participants