mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 03:55:51 +01:00
Make timeout configurable
This commit is contained in:
@@ -141,8 +141,8 @@ public class GitBrowseCommand extends AbstractGitCommand
|
||||
} finally {
|
||||
executorService.shutdown();
|
||||
try {
|
||||
if (!executorService.awaitTermination(10, TimeUnit.SECONDS)) {
|
||||
logger.info("lookup of all commits took too long in repo {}", repository.getNamespaceAndName());
|
||||
if (!executorService.awaitTermination(request.getComputationTimeoutMilliSeconds(), TimeUnit.MILLISECONDS)) {
|
||||
logger.info("lookup of all commits aborted after {}ms in repo {}", request.getComputationTimeoutMilliSeconds(), repository.getNamespaceAndName());
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
@@ -259,8 +259,6 @@ public class GitBrowseCommand extends AbstractGitCommand
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
private RevWalk commitWalk = null;
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user