From 688f4cd79d47e9c74b18125d2cfb0e972bb2431e Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 27 Apr 2023 11:54:12 +0200 Subject: Set request timeouts for the thread pools The request timeout should ensure that the operations don't back up if the thread pool is overloaded. --- scripts/guix-data-service.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/guix-data-service.in b/scripts/guix-data-service.in index adfc3d3..f376152 100644 --- a/scripts/guix-data-service.in +++ b/scripts/guix-data-service.in @@ -214,7 +214,10 @@ 2)) #:idle-seconds 60 #:idle-thunk - close-thread-postgresql-connection))) + close-thread-postgresql-connection)) + + (thread-pool-request-timeout 10)) + (start-guix-data-service-web-server (assq-ref opts 'port) (assq-ref opts 'host) -- cgit v1.2.3