20c08a8a45
This is part of trying to reduce the interdependency of code within the substitute module. This commit addresses some of the error handling that was performed through open-connection-for-uri/maybe. The new approach is to use call-with-connection-error-handling, and wrap calls to http-multiple-get and http-fetch with that procedure, which takes care of handling connection errors. I think this is even slightly more rigerous than the previous setup, because this approach handles connection errors that occur when http-multiple-get reconnects to a host. * guix/scripts/substitute.scm (open-connection-for-uri/maybe): Transform in to call-with-connection-error-handling. (fetch-narinfos): Use call-with-connection-error-handling. (process-query): Replace open-connection-for-uri/maybe with open-connection-for-uri/cached. (open-connection-for-uri/cached): Set a default timeout, matching the behaviour in open-connection-for-uri/maybe. (process-substitution): Use call-with-connection-error-handling. |
||
---|---|---|
.. | ||
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 | ||
system.scm | ||
time-machine.scm | ||
upgrade.scm | ||
weather.scm |