From d75de0de42f7158be9213b69fca04cf59badb64b Mon Sep 17 00:00:00 2001 From: Nattapon Wongpaet Date: Tue, 21 Aug 2018 16:26:29 +0700 Subject: [PATCH] fix timeout --- ais-structure/src/modules/helper/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ais-structure/src/modules/helper/connection.js b/ais-structure/src/modules/helper/connection.js index 4089103..d0808aa 100644 --- a/ais-structure/src/modules/helper/connection.js +++ b/ais-structure/src/modules/helper/connection.js @@ -14,7 +14,7 @@ connection.requestSoapToSACF = async function (soap,cmd,myMethod) { url : cfg.service.SACF[myMethod+"_"+cmd+"_URL"], body : messageSOAP.objectToSOAP(soap,cmd), method : myMethod, - timeout : cfg.service.SACF[myMethod+"_"+cmd+"_Timeout"] + timeout : cfg.service.SACF[myMethod+"_"+cmd+"_Timeout"]*1000 } stats.sendSACFRequest(cfg.service.SACF.Name,cmd) @@ -31,7 +31,7 @@ connection.requestJsonToD01 = async function (obj,cmd,myMethod) { url : service[myMethod+"_"+cmd+"_URL"], body : obj, method : myMethod, - timeout : service[myMethod+"_"+cmd+"_Timeout"] + timeout : service[myMethod+"_"+cmd+"_Timeout"]*1000 } var result = {}; -- libgit2 0.21.2