-
Notifications
You must be signed in to change notification settings - Fork 662
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
Network timeout too aggressive #386
Comments
It looks like the simplestreams index downloader is what this bails on. |
It is set to be a 10 second timeout for any network activity such as fetching the SimpleStreams data or an image. If it is indeed shorter than ~10 seconds, then something strange is going on. But if it is 10 seconds, then that is some really bad latency/download bandwidth. However, maybe we need to bump up the timeout...but to what?? |
Maybe use the same number lxd uses? |
LXD just uses whatever the Go network stuff gives it, so I'll have to dig into that stuff to figure it out. One thing I thought of though is that we give it 10 seconds total to fully download the SimpleStreams manifest, so for high latency/low bandwidth setups, this is not optimal. I think instead, we should just detect if any progress is being made and if so, let it keep chugging along and only timeout if no progress is being made in 10 seconds (or some other arbitrary timeout). |
Should be relatively easy to replicate the behaviour of |
I wonder if this issue is the same as the |
@Lin-Buo-Ren that is quite likely, yes, is that what you've been having trouble with |
Not really the same with the previous one, it just kept coming out for my attention. |
658: downloader: Reset timer when readReady is emitted for general downloads r=ricab a=townsend2010 Fixes #386 Co-authored-by: Chris Townsend <[email protected]>
658: downloader: Reset timer when readReady is emitted for general downloads r=ricab a=townsend2010 Fixes #386 Co-authored-by: Chris Townsend <[email protected]>
If my network is not at its best state with regards to latency, it is rather easy to get:
As a side data point, using snapcraft or having lxd auto trigger the new image download does not timeout like this. I have not timed it, but feels like it waits only 2 seconds to decide on a timeout.
The text was updated successfully, but these errors were encountered: