Skip to content

Commit

Permalink
Fix default transaction timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
romi2002 committed Jul 9, 2024
1 parent dd61d9c commit 3816738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/CkanTransaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static TransactionScope CreateTransactionScope()
}

// System.ArgumentOutOfRangeException : Time-out interval must be less than 2^32-2. (Parameter 'dueTime')
private const double timeoutMs = 4294967294d;
private const double timeoutMs = Int32.MaxValue;
private static readonly TimeSpan maxCoretimeout = TimeSpan.FromMilliseconds(timeoutMs);

private static readonly TransactionOptions transOpts = new TransactionOptions()
Expand Down

0 comments on commit 3816738

Please sign in to comment.