flatpak-builder icon indicating copy to clipboard operation
flatpak-builder copied to clipboard

[Feature request]: Add option to select HTTP protocol version for sources downloads

Open AsciiWolf opened this issue 3 years ago • 4 comments

Checklist

  • [X] I agree to follow the Code of Conduct that this project adheres to.
  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Suggestion

I am trying to update one of my Flatpaks, however the update fails on HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) which seems to (probably) be a server issue. It would be great if there was a way to force old HTTP/1.1 version instead of HTTP/2 or at least try the download over older HTTP/1.1 as a fallback when HTTP/2 fails on similar error.

AsciiWolf avatar Sep 17 '22 21:09 AsciiWolf

This is very weird and a specific bug on a specific site. I don't think it makes sense at all to expose such details to build manifests.

TingPing avatar Sep 20 '22 00:09 TingPing

Hm, I kind of agree. On the other hand, it would be good to have some work arounds in these corner cases. Or maybe at least an option to enable verbose (curl -v) output?

AsciiWolf avatar Sep 20 '22 11:09 AsciiWolf

Another possible solution could be a fallback to HTTP/1.1 when HTTP/2 has some problem.

AsciiWolf avatar Sep 26 '22 22:09 AsciiWolf

Thats more reasonable, not much harm in a retry.

TingPing avatar Sep 27 '22 19:09 TingPing