diff --git a/src/LiveRecorder.WebApi/Program.cs b/src/LiveRecorder.WebApi/Program.cs index 33202a7..487917d 100644 --- a/src/LiveRecorder.WebApi/Program.cs +++ b/src/LiveRecorder.WebApi/Program.cs @@ -132,7 +132,7 @@ if (connectionStringBuilder.Timeout <= 0) if (connectionStringBuilder.CommandTimeout <= 0) { - connectionStringBuilder.CommandTimeout = 60; + connectionStringBuilder.CommandTimeout = 120; } if (connectionStringBuilder.KeepAlive <= 0) @@ -146,8 +146,8 @@ builder.Services.AddDbContext(options => npgsql.MigrationsAssembly(typeof(LiveRecorderDbContext).Assembly.FullName); npgsql.CommandTimeout(connectionStringBuilder.CommandTimeout); npgsql.EnableRetryOnFailure( - maxRetryCount: 5, - maxRetryDelay: TimeSpan.FromSeconds(10), + maxRetryCount: 3, + maxRetryDelay: TimeSpan.FromSeconds(15), errorCodesToAdd: null); }));