From 3b23f69232b76b88d28e1eedb564b74984e415d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Egelund-M=C3=BCller?= Date: Thu, 14 Dec 2023 16:26:33 +0100 Subject: [PATCH] Increase timeouts --- runtime/connection_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/connection_cache.go b/runtime/connection_cache.go index 50fc3b43ced..a43f5afaf55 100644 --- a/runtime/connection_cache.go +++ b/runtime/connection_cache.go @@ -28,8 +28,8 @@ type cachedConnectionConfig struct { func (r *Runtime) newConnectionCache() conncache.Cache { return conncache.New(conncache.Options{ MaxConnectionsIdle: r.opts.ConnectionCacheSize, - OpenTimeout: 2 * time.Minute, - CloseTimeout: 5 * time.Minute, + OpenTimeout: 10 * time.Minute, + CloseTimeout: 10 * time.Minute, CheckHangingInterval: time.Minute, OpenFunc: func(ctx context.Context, cfg any) (conncache.Connection, error) { x := cfg.(cachedConnectionConfig)