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

Bugfix: Asset Loading & Error "ERR_HTTP2_SERVER_REFUSED_STREAM" #86

Merged
merged 5 commits into from
Feb 20, 2023

Conversation

noblemaster
Copy link
Contributor

I encountered an error if too many assets are loaded. On HTTP/2, loading more than a certain amount of assets at the same, the server might respond with an ERR_HTTP2_SERVER_REFUSED_STREAM error (e.g. IONOS provider).

I have mitigated the problem:

  • unless it's a 404, an asset is re-tried to be loaded
  • asset loading now in a Thread.

This seems to fix the problem. If an error is encountered, the downloader simply tries to re-download after a short pause of 100ms.

@xpenatan xpenatan merged commit 259bea0 into xpenatan:master Feb 20, 2023
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