Соединение закрыто на байт при загрузке файла thorgh nginx, который размещен на AWS - PullRequest
0 голосов
/ 24 сентября 2019

Небольшой размер загружаемого файла, но файл размером более 40-50 МБ не загружается.Мое приложение размещено на AWS.EBS и балансировщик нагрузки настроены.

Иногда он работает даже с большими файлами, а иногда постоянно терпит неудачу.

wget "https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run"
--2019-09-23 19:23:42--  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Resolving example.com (example.com)... 3.121.133.224, 52.28.206.243
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

ubuntu_with_dependencies_1.7.3.0.run?action   2%[=>                                                                                                               ]  34.93M  5.63MB/s    in 11s     

2019-09-23 19:23:54 (3.18 MB/s) - Connection closed at byte 36631912. Retrying.

--2019-09-23 19:23:55--  (try: 2)  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

ubuntu_with_dependencies_1.7.3.0.run?action   2%[=>                                                                                                               ]  40.82M  2.82MB/s    in 13s     

2019-09-23 19:24:10 (3.16 MB/s) - Connection closed at byte 42799086. Retrying.

--2019-09-23 19:24:12--  (try: 3)  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

ubuntu_with_dependencies_1.7.3.0.run?action   1%[>                                                                                                                ]  19.93M  1.33MB/s    in 11s     

2019-09-23 19:24:24 (1.82 MB/s) - Connection closed at byte 42799086. Retrying.

--2019-09-23 19:24:27--  (try: 4)  https://example.com/api/download/ubuntu_with_dependencies_1.7.3.0.run
Connecting to example.com (example.com)|3.121.133.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1761639037 (1.6G) [application/x-makeself]
Saving to: ubuntu_with_dependencies_1.7.3.0.run

               ubuntu_with_dependencies_1.7   0%[                                                                                                                 ]   2.05M   902KB/s   
...