xpenatan / gdx-teavm

Run Libgdx in a webbrowser with teavm
Apache License 2.0
107 stars 16 forks source link

Bugfix: Asset Loading & Error "ERR_HTTP2_SERVER_REFUSED_STREAM" #86

Closed noblemaster closed 1 year ago

noblemaster commented 1 year ago

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:

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