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

If Poster restarted quickly, images may not display in browser #44

Closed
petersem opened this issue May 18, 2021 · 1 comment
Closed

If Poster restarted quickly, images may not display in browser #44

petersem opened this issue May 18, 2021 · 1 comment
Assignees
Labels
bug Something isn't working P:1 Priority 1 Sev: 1 High severity - cannot release with this issue

Comments

@petersem
Copy link
Owner

petersem commented May 18, 2021

When Posterr is restarted, it clears image and mp3 caches. If it is restarted within 5 seconds, then the connection check in the browser may not see it, and keep trying to display posters and play mp3's that are no longer there.

Need to have some signal in connection check to restart browser if server has restarted, but connection check has not identified the restart.

@petersem petersem added bug Something isn't working Sev: 1 High severity - cannot release with this issue P:1 Priority 1 labels May 18, 2021
@petersem petersem self-assigned this May 18, 2021
@petersem
Copy link
Owner Author

When the connection check runs, it gets a cold start value from Posterr. if this is less than 6 seconds from the current time, then it is determined that the server restarted rapidly and wasn't detected by the normal connection check. A browser refresh is then performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P:1 Priority 1 Sev: 1 High severity - cannot release with this issue
Projects
None yet
Development

No branches or pull requests

1 participant