Dowload problem: Connection is closed after 1 or 2 seconds

I’m having trouble download the OnePlus3 build. Firefox, curl and wget get disconnected after a second or two. wget resumes the download after being disconnected:

 % wget https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
--2018-12-15 11:08:17--  https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
Resolving images.ecloud.global... 54.36.108.200
Connecting to images.ecloud.global|54.36.108.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 669232117 (638M) [application/zip]
Saving to: 'e-0.1-201812152239-nightly-oneplus3.zip.1'

e-0.1-201812152239-nightly-oneplu   0%[                                                              ]  45.11K  --.-KB/s    in 0.05s   

2018-12-15 11:08:17 (951 KB/s) - Connection closed at byte 46197. Retrying.

--2018-12-15 11:08:18--  (try: 2)  https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
Connecting to images.ecloud.global|54.36.108.200|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 669232117 (638M), 669185920 (638M) remaining [application/zip]
Saving to: 'e-0.1-201812152239-nightly-oneplus3.zip.1'

e-0.1-201812152239-nightly-oneplu   0%[                                                              ]  90.17K  --.-KB/s    in 0.04s   

2018-12-15 11:08:18 (1.20 MB/s) - Connection closed at byte 92333. Retrying.

--2018-12-15 11:08:20--  (try: 3)  https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
Connecting to images.ecloud.global|54.36.108.200|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 669232117 (638M), 669139784 (638M) remaining [application/zip]
Saving to: 'e-0.1-201812152239-nightly-oneplus3.zip.1'

So part after part wget does download the file but with all the disconnections in between it would take ages. I then tried the same on a server of mine with good internet connection:

~$ wget https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
--2018-12-15 11:10:21--  https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
Resolving images.ecloud.global (images.ecloud.global)... 54.36.108.200
Connecting to images.ecloud.global (images.ecloud.global)|54.36.108.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 669232117 (638M) [application/zip]
Saving to: ‘e-0.1-201812152239-nightly-oneplus3.zip’

e-0.1-201812152239-nightly-oneplu   9%[=====>                                                        ]  63.76M  55.0MB/s    in 1.2s    

2018-12-15 11:10:23 (55.0 MB/s) - Connection closed at byte 66858668. Retrying.

--2018-12-15 11:10:24--  (try: 2)  https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
Connecting to images.ecloud.global (images.ecloud.global)|54.36.108.200|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 669232117 (638M), 602373449 (574M) remaining [application/zip]
Saving to: ‘e-0.1-201812152239-nightly-oneplus3.zip’

e-0.1-201812152239-nightly-oneplu  20%[++++++=====>                                                  ] 129.40M  69.7MB/s    in 0.9s    

2018-12-15 11:10:25 (69.7 MB/s) - Connection closed at byte 135683352. Retrying.

--2018-12-15 11:10:27--  (try: 3)  https://images.ecloud.global/nightly/oneplus3/e-0.1-201812152239-nightly-oneplus3.zip
Connecting to images.ecloud.global (images.ecloud.global)|54.36.108.200|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 669232117 (638M), 533548765 (509M) remaining [application/zip]
Saving to: ‘e-0.1-201812152239-nightly-oneplus3.zip’

e-0.1-201812152239-nightly-oneplu  23%[++++++++++++=>                                                ] 152.31M  32.4MB/s    in 0.7s    

2018-12-15 11:10:27 (32.4 MB/s) - Connection closed at byte 159714179. Retrying.
[…]

Same issue here, so it’s not an issue with my local network connection or computer. The only difference here is that due to the fast network connection it loads larger chunks before getting disconnected. It finally succeeded with 7 trys.

I tried a download…but net connectivity is slow this time of the day for me so not able to confirm.@rhunault please can you check the issue here.
Just to add to the first point. I am able to download but it is very slow.

@niko were you able to complete the download or are you still facing a problem.

I was able to complete the download due to doing it on a server with fast internet connection and even then it took 7 retries.

I just rechecked and it works fine now.

Thanks for the update.