Comparing version 1.1.2 to 1.1.3
@@ -419,3 +419,3 @@ const crypto = require('crypto'); | ||
headers: req.headers, | ||
timeout: ipport.timeout || 5000 | ||
timeout: ipport.timeout || 15000 | ||
}; | ||
@@ -469,3 +469,3 @@ let P = Q.defer(); | ||
function () { | ||
console.log("超时事件") | ||
console.log("超时事件,"+req.originalUrl) | ||
P.reject({ | ||
@@ -484,3 +484,3 @@ error: "timeout" | ||
req_server.on('error', (e) => { | ||
console.error(`请求遇到问题: ${e.message}`); | ||
console.error(`请求遇到问题: ${e.message}`+req.originalUrl); | ||
req_server.abort(); //超时后强行中止请求 | ||
@@ -487,0 +487,0 @@ }); |
{ | ||
"name": "pdgongju", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "work-box", | ||
@@ -18,2 +18,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
21079