Skip to content

fix: add connect timeout so ureq can fail over to other DNS IPs - #359

Merged
devmatteini merged 2 commits into
devmatteini:mainfrom
plutonium-239:fix/connect-timeout
Aug 28, 2026
Merged

fix: add connect timeout so ureq can fail over to other DNS IPs#359
devmatteini merged 2 commits into
devmatteini:mainfrom
plutonium-239:fix/connect-timeout

Conversation

@plutonium-239

@plutonium-239 plutonium-239 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Fixes #358.

Adds a connect_timeout to the ureq::Agent.

This allows ureq to try the remaining resolved IPs transparently.

I've built and tested it - it waits the 5s, then starts downloading. No log/output/warning printed to the terminal.

@plutonium-239 plutonium-239 changed the title fix: add connect timeout so ureq can fail over to other DNS IPs (fixes #358) fix: add connect timeout so ureq can fail over to other DNS IPs Aug 27, 2026
@devmatteini

Copy link
Copy Markdown
Owner

Hi @plutonium-239 and thanks for your PR!

The change seems reasonable, but could you lower the connect timeout to 2 seconds?

After that I will merge and release a new dra version

@plutonium-239

Copy link
Copy Markdown
Contributor Author

Done @devmatteini!

@devmatteini
devmatteini merged commit 4b2c049 into devmatteini:main Aug 28, 2026
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.

Add connection timeouts to allow DNS failover

2 participants