Workaround for frontend-version page not working in podman v5 #105
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Ever since upgrading to podman v5 I have had trouble with the "Pick frontend version" page taking forever and eventually timing out. I have waited for a couple of updates with the hope that it would resolve itself, but seeing as this is still an issue for me in podman v5.1 I have made this workaround.
The issue seems to be that when trying to connect to a port on
host.docker.internal
that does not have a server running it just tries to connect forever until eventually timing out after 100 seconds, throwing aTaskCanceledException
which is not caught inmain
so the page eventually fails to load. I have not figured out why the requests don't simply fail instantly. To work around this problem I catch theTaskCanceledException
, use a very low timeout for theHttpClient
, and run the requests in parallel so that it only takes half a second to fail all of the other requests where a frontend server is not running.If someone else uses podman v5 and don't have this issue then maybe its just my machine, and if we figure it out we could close this.
Related Issue(s)
Verification
Documentation