Skip to content

Commit

Permalink
Merge #4119 Fix default transaction timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jul 9, 2024
2 parents dd61d9c + 3816738 commit ab683b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ All notable changes to this project will be documented in this file.
- [GUI] Fix NRE on trying to update all when there's nothing to update (#4054 by: HebaruSan)
- [Core] Fix NRE in repo update with corrupted etags.json file (#4077, #4078 by: HebaruSan)
- [Core] Skip temp files for repo updates (#4102 by: HebaruSan)
- [Core] Fix default transaction timeout (#4119 by: romi2002; reviewed: HebaruSan)

### Internal

Expand Down
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 ab683b7

Please sign in to comment.