diff --git a/xmlout.js b/xmlout.js index e5c0ac4..4ceb911 100644 --- a/xmlout.js +++ b/xmlout.js @@ -114,6 +114,9 @@ function _topupRequest(task, pendingOnConnectError) { if (!pendingOnConnectError && (error.code == 'ECONNREFUSED' || error.code == 'EHOSTUNREACH')) { rc = '91'; msg = 'XMLRPC Client Error on connecting'; + } else if (!pendingOnConnectError && error.code == 'ETIMEDOUT' && error.syscall == "connect") { + rc = '91'; + msg = 'XMLRPC Client Error on connecting'; } callbackReport(task['requestId'], rc, msg, null, JSON.stringify({methodName: methodName, error: error, body: error.body}));