leotaku / tower-livereload

Tower middleware to automatically reload your web browser during development
Apache License 2.0
59 stars 5 forks source link

Add timeout for retries to prevent retry request from hanging #8

Closed regularfellow closed 5 months ago

regularfellow commented 6 months ago

When using from devcontainers during cargo recompilation and a small time after that the forwarded port will not be reachable leading to the retry request to hang indefinitely. This pull request times out the retry so it retries again to reload the page. Hopefully reasonable 😅

leotaku commented 5 months ago

Sorry for the delayed response, I've been busy the last few weeks. This change seems like a good improvement. Merged and I will try to get a new release out soon, so this can be generally available.