Skip to content

Commit c1dd418

Browse files
authored
Rgops 5234 nodejs sdk connection read timeout issue (#13)
* RGOPS-5234 Node.js SDK update - Use the highest value between connectTimeout or readtimeout * RGOPS-5234 Node.js SDK update - Use the highest value between connectTimeout or readtimeout * RGOPS-5234 Node.js SDK update - Use the highest value between connectTimeout or readtimeout
1 parent 05c2fcb commit c1dd418

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

config/rgProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"LIVE_HOST_16": "gateway-16.rocketgate.com",
1111
"LIVE_HOST_17": "gateway-17.rocketgate.com",
1212
"TEST_HOST": "dev-gateway.rocketgate.com",
13-
"VERSION_NUMBER": "K2.3"
13+
"VERSION_NUMBER": "K2.4"
1414
},
1515
"responseSettings": {
1616
"VERSION_INDICATOR": "version",

lib/gatewayService.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ function GatewayService(options) {
177177
'Content-Type': 'text/xml',
178178
'User-Agent': serviceSettings.ROCKETGATE_USER_AGENT + " " + serviceSettings.VERSION_NUMBER
179179
},
180-
timeout: connectTimeout * 1000
180+
timeout: ((readTimeout > connectTimeout) ? readTimeout : connectTimeout) * 1000
181181
};
182-
183182
_request(options, function(err, res, body) {
184183
var responseCode = null, errorMessage;
185184

0 commit comments

Comments
 (0)