Skip to content

Conversation

@mildlyhuman
Copy link

@mildlyhuman mildlyhuman commented Sep 28, 2022

This patch tries to resolve #175 , #167 , #150 (and alikes if they exist). The server (victor.poshtiban.io) drops connection(?) every 200Mb or so, making curl to fail with "HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)".

Existing suggestions either need custom script, or at least require the user to download and move the file. It seems unnecessary. I propose to retry & continue in-place with wget, which should be available on most linux systems.

The curl command was also modified to allow retry and continue, but it won't go through that particular error. I'm not familiar with curl, sorry. I think it should be able to, but can't find the right solution.

Copy link

@bpavuk bpavuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opt out of this f*cking curl, please

else
show_message "downloading $4 ..."
ariapkg=$(package_installed aria2c "summary")
curlpkg=$(package_installed curl "summary")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can opt out of curl, so remove any lines which use curl, such as this

show_message "using wget to download $4"
wget --no-check-certificate "$3" -P "$CACHE_PATH"
wget --no-check-certificate "$3" --continue --tries=0 -P "$CACHE_PATH"
else
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and in else block we can print error with sugestion to install aria/wget and retry

@mildlyhuman
Copy link
Author

To be fair with curl, I have not tested aria2 (thus the no edit). Maybe the curl command can benefit from a little warning message, if the file download link continue to be not very stable.

Anyway, I just want to propose the allow-continue behavior since it's readily available in at least wget.

@bpavuk
Copy link

bpavuk commented Oct 25, 2022

And because of this you must opt out of curl

@ZeloBox
Copy link

ZeloBox commented Mar 23, 2023

This solution is fixing this bug. I succesfully downloaded photoshopCC-V19.1.6-2018x64.tgz from
https://victor.poshtiban.io/p/gictor/photoshopCC/photoshopCC-V19.1.6-2018x64.tgz now
Download limit at site victor is 50 Mb now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: sorry something went wrong during download photoshopCC-V19.1.6-2018x64.tgz

3 participants