From 0f2b200c8701aad2304f3faf23464f15c1bce1d4 Mon Sep 17 00:00:00 2001 From: Phil Date: Tue, 26 Nov 2024 10:49:32 -0500 Subject: [PATCH] source-postgres: increase connect timeout to 20s We're seeing frequent connection failures for some captures, so kinda just hoping that this might help with those. --- source-postgres/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source-postgres/main.go b/source-postgres/main.go index 29e1fe3fd6..b0694f9e6d 100644 --- a/source-postgres/main.go +++ b/source-postgres/main.go @@ -244,7 +244,7 @@ func (db *postgresDatabase) connect(ctx context.Context) error { return fmt.Errorf("error parsing database uri: %w", err) } if config.ConnectTimeout == 0 { - config.ConnectTimeout = 10 * time.Second + config.ConnectTimeout = 20 * time.Second } conn, err := pgx.ConnectConfig(ctx, config) if err != nil {