aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-10-16 17:10:09 +0100
committerChristopher Baines <mail@cbaines.net>2022-10-16 17:10:09 +0100
commitf051c28c0d5882ba94570ef1e525567bbed0254d (patch)
tree138cbc6f253238217af3887b4c42bc1a2da10f68 /scripts
parent888da40020ab3c66b52e3bdca4a572750cd13fc5 (diff)
downloadbuild-coordinator-f051c28c0d5882ba94570ef1e525567bbed0254d.tar
build-coordinator-f051c28c0d5882ba94570ef1e525567bbed0254d.tar.gz
Use suspendable ports for the agent, with timeouts
This seems like a way of making the Guile internals for doing network I/O reliable. Currently, there are problems where things on the network timeout, but the Guile code for reading/writing just sits there, hung. This seems like it might help.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guix-build-coordinator-agent.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/guix-build-coordinator-agent.in b/scripts/guix-build-coordinator-agent.in
index 52d77ae..c211d39 100644
--- a/scripts/guix-build-coordinator-agent.in
+++ b/scripts/guix-build-coordinator-agent.in
@@ -27,12 +27,15 @@
(srfi srfi-37)
(ice-9 threads)
(ice-9 textual-ports)
+ (ice-9 suspendable-ports)
((guix config) #:prefix guix-config:)
(guix-build-coordinator utils)
(guix-build-coordinator agent)
(guix-build-coordinator agent-messaging)
(guix-build-coordinator agent-messaging http))
+(install-suspendable-ports!)
+
(define %options
;; Specifications of the command-line options
(list (option '("coordinator") #t #f