Просмотр исходного кода

Change push timeout to three minutes

Shane Kilkelly 7 лет назад
Родитель
Сommit
c435eccc43

+ 1 - 1
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/push/PostbackPromise.java

@@ -35,7 +35,7 @@ public class PostbackPromise {
         try {
         try {
             while (!received) {
             while (!received) {
                 try {
                 try {
-                    if (!cond.await(60, TimeUnit.SECONDS)) {
+                    if (!cond.await(60 * 3, TimeUnit.SECONDS)) {
                         throw new PostbackTimeoutException();
                         throw new PostbackTimeoutException();
                     }
                     }
                 } catch (InterruptedException e) {
                 } catch (InterruptedException e) {

+ 1 - 1
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/push/exception/PostbackTimeoutException.java

@@ -13,7 +13,7 @@ public class PostbackTimeoutException extends SevereSnapshotPostException {
 
 
     @Override
     @Override
     public String getMessage() {
     public String getMessage() {
-        return "timeout (60s)";
+        return "timeout";
     }
     }
 
 
     @Override
     @Override