hget icon indicating copy to clipboard operation
hget copied to clipboard

hget panic and not resumable when connection reset by peer

Open cuonglm opened this issue 6 years ago • 0 comments

% ./bin/hget https://download.jetbrains.com/go/goland-2019.2.dmg\?_ga\=2.155218107.1855567477.1566137657-1279663696.1566137657                                                                                                                               cuonglm@Cuongs-MBP
INFO: Resolve ip: 52.17.184.56 | 52.50.241.213
INFO: Start download with 12 connections
INFO: Download target size: 339.5 MB
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-0 13.27 MiB / 28.29 MiB [=======================================================================>---------------------------------------------------------------------------------]  46.91% 18m50s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-1 28.29 MiB / 28.29 MiB [=========================================================================================================================================================] 100.00% 16m41s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-2 18.81 MiB / 28.29 MiB [=====================================================================================================>---------------------------------------------------]  66.50% 08m22s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-3 14.61 MiB / 28.29 MiB [===============================================================================>-------------------------------------------------------------------------]  51.65% 15m37s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-4 20.58 MiB / 28.29 MiB [===============================================================================================================>-----------------------------------------]  72.74% 04m09s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-5 16.33 MiB / 28.29 MiB [========================================================================================>----------------------------------------------------------------]  57.72% 12m13s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-6 15.81 MiB / 28.29 MiB [=====================================================================================>-------------------------------------------------------------------]  55.90% 13m04s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-7 16.80 MiB / 28.29 MiB [==========================================================================================>--------------------------------------------------------------]  59.39% 11m24s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-8 8.98 MiB / 28.29 MiB [================================================>---------------------------------------------------------------------------------------------------------]  31.76% 31m23s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-9 5.11 MiB / 28.29 MiB [===========================>----------------------------------------------------------------------------------------------------------------------------]  18.05% 1h14m40s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-10 28.29 MiB / 28.29 MiB [========================================================================================================================================================] 100.00% 16m41s
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657-11 15.33 MiB / 28.29 MiB [==================================================================================>---------------------------------------------------------------------]  54.18% 11m52s
ERROR: read tcp 192.168.1.226:50509->13.225.103.16:443: read: connection reset by peerpanic: read tcp 192.168.1.226:50509->13.225.103.16:443: read: connection reset by peer

goroutine 1 [running]:
main.Execute(0x7ffeefbff833, 0x6f, 0x0, 0xc, 0x139d801)
	/Users/cuonglm/go/src/github.com/huydx/hget/main.go:105 +0xd83
main.main()
	/Users/cuonglm/go/src/github.com/huydx/hget/main.go:58 +0x208
±|master ✔| hget
% ./bin/hget tasks                                                                                                                                                                                                                                           cuonglm@Cuongs-MBP
INFO: Currently on going download:
goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657
±|master ✔| hget
% ./bin/hget resume https://download.jetbrains.com/go/goland-2019.2.dmg\?_ga\=2.155218107.1855567477.1566137657-1279663696.1566137657                                                                                                                        cuonglm@Cuongs-MBP
INFO: Getting data from /Users/cuonglm/.hget/goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657/state.json
ERROR: open /Users/cuonglm/.hget/goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657/state.json: no such file or directorypanic: open /Users/cuonglm/.hget/goland-2019.2.dmg?_ga=2.155218107.1855567477.1566137657-1279663696.1566137657/state.json: no such file or directory

goroutine 1 [running]:
main.FatalCheck(...)
	/Users/cuonglm/go/src/github.com/huydx/hget/util.go:16
main.main()
	/Users/cuonglm/go/src/github.com/huydx/hget/main.go:49 +0x6e5

cuonglm avatar Aug 18 '19 15:08 cuonglm