GNUTLS_E_UNEXPECTED_PACKET_LENGTH returned inappropriately?
I'm having flatpak and ostree stop quite often when downloading large things, with the following error
Error reading data from TLS socket: Error decoding the received TLS packet.
I've tracked this down to glib-networking (used via libsoup) converting
G_TLS_ERROR_MISC which ostree considers to be a fatal error (and doesn't retry).
But to me, "unexpected packet length" sounds like something that would be caused by a "connection reset" or similar network error, which should be retried.
How can things be improved in glib-networking (and possibly ostree) to fix this?