guix-kreyren/guix/scripts
Ludovic Courtès 02d62978f4
http-client, substitute: Gracefully handle GnuTLS EAGAIN/EINTR.
Partly fixes <https://bugs.gnu.org/47867>.
Reported by Florian Pelz <pelzflorian@pelzflorian.de>.

In GnuTLS up to 3.7.1 included, GNUTLS_E_AGAIN and GNUTLS_E_INTERRUPTED
are not handled by 'write_to_session_record_port' and could be thrown at
the caller.  This patch works around that by dropping connections
altogether and restarting when this happens.

* guix/http-client.scm (false-if-networking-error): Swallow ERROR/AGAIN
and ERROR/INTERRUPTED.
* guix/scripts/substitute.scm (call-with-cached-connection): Likewise.
2021-04-24 19:08:13 +02:00
..
container
git
import
system
archive.scm
authenticate.scm
build.scm
challenge.scm
container.scm
copy.scm
deploy.scm
describe.scm
discover.scm
download.scm
edit.scm
environment.scm
gc.scm
git.scm
graph.scm
hash.scm
import.scm
install.scm
lint.scm
offload.scm
pack.scm
package.scm
perform-download.scm
processes.scm
publish.scm
pull.scm
refresh.scm
remove.scm
repl.scm
search.scm
show.scm
size.scm
substitute.scm http-client, substitute: Gracefully handle GnuTLS EAGAIN/EINTR. 2021-04-24 19:08:13 +02:00
system.scm
time-machine.scm
upgrade.scm
weather.scm