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

improve constant connection timeouts #358

Open
tonistiigi opened this issue Aug 21, 2020 · 4 comments
Open

improve constant connection timeouts #358

tonistiigi opened this issue Aug 21, 2020 · 4 comments
Labels
help wanted Extra attention is needed kind/enhancement New feature or request

Comments

@tonistiigi
Copy link
Member

follow up from #323

#323 (comment)

Maybe we should make these configurable. 20 sec might be ok but overall this makes the experience worse for the cases where instances never connect.

Another approach might be to try to see if it is in the middle of connecting already. Only cancel with timeout it there was no response at all.

@saulshanabrook

@tonistiigi tonistiigi added kind/enhancement New feature or request help wanted Extra attention is needed labels Aug 21, 2020
@saulshanabrook
Copy link
Contributor

Another approach might be to try to see if it is in the middle of connecting already. Only cancel with timeout it there was no response at all.

That seems preferable! In that case, would it just keep waiting until it got a response or the network timed out?

@tonistiigi
Copy link
Member Author

In that case, would it just keep waiting until it got a response or the network timed out?

There would still be a timeout. But currently, I believe the timeout is for getting the whole response from the server. If we already get some response we can assume that server is just slow and not unresponsive and increase or reset the timeout.

@Aposhian
Copy link

Aposhian commented Jun 3, 2021

Pending a more intelligent solution, could we use a shorter timeout, and add an option to ls to increase the timeout for slow connections?

@avoidik
Copy link

avoidik commented Jul 10, 2024

speaking of consistency, with the SSH connection over docker context we have 30 seconds timeout, however the direct remote connection timeout in docker buildx is 20 seconds, which is hardcoded in many places

not sure if you find this approach appropriate, but here is the PR:
#2586

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants