Commit d75de0de42f7158be9213b69fca04cf59badb64b
1 parent
854830af
Exists in
master
and in
1 other branch
fix timeout
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
ais-structure/src/modules/helper/connection.js
@@ -14,7 +14,7 @@ connection.requestSoapToSACF = async function (soap,cmd,myMethod) { | @@ -14,7 +14,7 @@ connection.requestSoapToSACF = async function (soap,cmd,myMethod) { | ||
14 | url : cfg.service.SACF[myMethod+"_"+cmd+"_URL"], | 14 | url : cfg.service.SACF[myMethod+"_"+cmd+"_URL"], |
15 | body : messageSOAP.objectToSOAP(soap,cmd), | 15 | body : messageSOAP.objectToSOAP(soap,cmd), |
16 | method : myMethod, | 16 | method : myMethod, |
17 | - timeout : cfg.service.SACF[myMethod+"_"+cmd+"_Timeout"] | 17 | + timeout : cfg.service.SACF[myMethod+"_"+cmd+"_Timeout"]*1000 |
18 | } | 18 | } |
19 | 19 | ||
20 | stats.sendSACFRequest(cfg.service.SACF.Name,cmd) | 20 | stats.sendSACFRequest(cfg.service.SACF.Name,cmd) |
@@ -31,7 +31,7 @@ connection.requestJsonToD01 = async function (obj,cmd,myMethod) { | @@ -31,7 +31,7 @@ connection.requestJsonToD01 = async function (obj,cmd,myMethod) { | ||
31 | url : service[myMethod+"_"+cmd+"_URL"], | 31 | url : service[myMethod+"_"+cmd+"_URL"], |
32 | body : obj, | 32 | body : obj, |
33 | method : myMethod, | 33 | method : myMethod, |
34 | - timeout : service[myMethod+"_"+cmd+"_Timeout"] | 34 | + timeout : service[myMethod+"_"+cmd+"_Timeout"]*1000 |
35 | } | 35 | } |
36 | 36 | ||
37 | var result = {}; | 37 | var result = {}; |