Closed
Description
I did this
Trying to transfer 3 URLs like:
https://api.adsb.lol/api/0/route/SAS4133
https://api.adsb.lol/api/0/route/BBD6810
https://api.adsb.lol/api/0/route/THY19Y
to get Airplane flight-information (in series or parallel), causes curl to hang for a really long time between each URL.
But only when built with -DUSE_HYPER
!? Entering the URLs either from a config-file or set on the command-line doesn't matter.
A simple get-urls.bat
file to reproduce:
@echo off
setlocal
set CURL_SSL_BACKEND=schannel
echo url=https://api.adsb.lol/api/0/route/SAS4133 > %TEMP%\curl_urls.txt
echo url=https://api.adsb.lol/api/0/route/BBD6810 >> %TEMP%\curl_urls.txt
echo url=https://api.adsb.lol/api/0/route/THY19Y >> %TEMP%\curl_urls.txt
curl -s -K - < %TEMP%\curl_urls.txt | grep "_airport_codes_iata"
Running the above .bat
file takes at least 1 minute to complete! With --parallel
or not.
I expected the following
The transfer to complete in < 1 sec. as the curl.exe
bundled with Win-10 does:
timer & c:\windows\system32\curl.exe -s https://api.adsb.lol/api/0/route/SAS4133 https://api.adsb.lol/api/0/route/BBD6810 https://api.adsb.lol/api/0/route/THY19Y | grep "_airport_codes_iata" & timer
Timer 1 on: 9:42:26
"_airport_codes_iata": "CGN-BLL-KEF",
"_airport_codes_iata": "SFO-IST",
"_airport_codes_iata": "BGO-SVG",
Timer 1 off: 9:42:26 Elapsed: 0:00:00,45
c:\windows\system32\curl -V
curl 8.0.1 (Windows) libcurl/8.0.1 Schannel WinIDN
Release-Date: 2023-03-20
Adding the --parallel
option I'd assume the URLs would be issued in parallel. Doesn't look so to me.
Version info:
curl -V
curl 8.2.0-DEV (x86_64-pc-win32) libcurl/8.2.0-DEV (OpenSSL/3.2.0) Schannel
(rustls-ffi/0.10.0/rustls/0.21.0) zlib/1.2.12 brotli/1.0.9 zstd/1.5.2 c-ares/1.19.0 libssh2/1.10.1_DEV Hyper/1.0.0-rc.3
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s scp sftp smb smbs smtp
smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL SSPI threadsafe
TLS-SRP UnixSockets zstd
I'm on Windows-10, 22H2 (OS-build 19045.2965).