Skip to content

Commit

Permalink
util: increase the lock timeout to 10s
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
  • Loading branch information
Pierre-Alexandre Meyer committed Oct 17, 2012
1 parent c93d7eb commit 4e65085
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -27,7 +27,8 @@ public class MySqlGlobalLocker implements GlobalLocker {

private static final Logger logger = LoggerFactory.getLogger(MySqlGlobalLocker.class);

private static final long DEFAULT_TIMEOUT = 5L; // 5 seconds
// Note that we could hold the lock while talking to the payment gateway, hence be generous in the timeout length
private static final long DEFAULT_TIMEOUT = 10L; // 10 seconds

private final IDBI dbi;
private long timeout;
Expand Down

0 comments on commit 4e65085

Please sign in to comment.