curl supports HTTP/2 for both HTTP:// and HTTPS:// URLs assuming that curl was built with the proper prerequisites. It even defaults to using HTTP/2 when given an HTTPS URL since doing so implies no penalty and when curl is used with sites that do not support HTTP/2 the request instead negotiates HTTP/1.1.
With HTTP:// URLs however, the upgrade to HTTP/2 is done with an Upgrade: header that may cause an extra round-trip and perhaps even more troublesome, a sizable share of old servers returns a 400 response when seeing such a header.
Is this an actual bug in the package or am I missing something?
Also just updated to the new TW snapshot and if you use “https” the “?mediahandler=curl2” appended to the repository url is not necessary … curl will do it automatically
Because putting ?mediahandler=curl2 on a http url instead of https just defaults back to http1.1 anyway and because curl attempts to reuse connections when doing multiple transfers, so getting many files from doesn’t result in multiple connect and setup handshakes and http2.0 is much better for that with multiple streams?
Maybe because if that http1.1 server had an
Upgrade: header that may cause an extra round-trip and perhaps even more troublesome
Or maybe because I already have download.max_concurrent_connections = 12 and I’ve maxed out my connection so ?mediahandler=curl2 does me no good anyway
Or maybe because it’s probably an easy fix to simply make the Tumbleweed Repos package use https instead?