rockdaboot / wget2

The successor of GNU Wget. Contributions preferred at https://gitlab.com/gnuwget/wget2. But accepted here as well 😍
GNU Lesser General Public License v3.0
543 stars 73 forks source link

Can it be compiled with wintls? #332

Open rzhy1 opened 1 month ago

rzhy1 commented 1 month ago

Can it be compiled with wintls? When wget.exe and aria2c.exe adopt wintls, the download speed is significantly faster in Windows, I wonder if this is possible for wget2.exe? Related link for wget: https://github.com/lifenjoiner/wget-for-windows

gvanem commented 1 month ago

Can it be compiled with wintls?

I assume you mean to interface with schannel.h? libcurl can use SChannel, so it would be possible in Wget/Wget2 too. Ref. the Virtual TLS layer in libcurl.

When wget.exe and aria2c.exe adopt wintls, the download speed is significantly faster in Windows,

How have you proven this? Using curl.exe with a set CURL_SSL_BACKEND=schannel, is IMO no faster than e.g. openssl, mbedtls etc.

rzhy1 commented 1 month ago

You can download wget(openssl) here : https://eternallybored.org/misc/wget/1.21.4/64/wget.exe

You can download wget(wintls) here: https://github.com/lifenjoiner/wget-for-windows/actions/runs/10006982087/artifacts/1718800350

Now you can download the same link and compare their download speeds, provided they are both on Windows.

gvanem commented 1 month ago

Windows Defender blocks the latter .zip-file!

rzhy1 commented 1 month ago

The wget (wintls) compiled by someone else that doesn't have a virus, you can temporarily disable Windows Defender and try again.

mitchcapper commented 4 weeks ago

wget2 naively supports wolfssl as an alternative ssl engine you might want to try compiling with that to see how it compares.