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

Unresponsive web worker on unsuspend #1742

Closed
raineorshine opened this issue Nov 18, 2023 · 0 comments
Closed

Unresponsive web worker on unsuspend #1742

raineorshine opened this issue Nov 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@raineorshine
Copy link
Contributor

raineorshine commented Nov 18, 2023

The web worker connection fails sometimes after the app becomes unsuspended.

Notes

  • PWA only
  • Maybe the web worker is suspended and never restarted
  • Unable to reproduce in offline mode
  • PWA over localhost can’t connect to server
  • Safari websocket suspended
  • Related to server
    • Goes offline while server is backed up with db.getYDoc
    • Comes back online after server finishes syncing
    • Or if it is too long, stays offline until next edit
    • Merely creating a new WebsocketProvider causes the issue, even if it’s not saved or subscribed to
  • Staging only
    • It can be reproduced in a small thoughtspace if the app goes passive
    • Therefore, it will not be absolved by server performance improvements
      • though that is the easiest way to induce it
    • If small thoughtspaces are susceptible, why can’t I reproduce it on localhost?
    • The web worker shouldn’t become unresponsive just because the website is down

References

@raineorshine raineorshine added the bug Something isn't working label Nov 18, 2023
@raineorshine raineorshine added this to the ⚖️ Data Integrity milestone Nov 18, 2023
@raineorshine raineorshine closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant