io/emoncms - Modify HTTP Timeout (#430)

* Modify HTTP timeout

Increase the HTTP Timeout values from 1000 to 6000.
Modify error message.
This commit is contained in:
borpin
2018-04-10 12:19:41 +01:00
committed by Dave Conway-Jones
parent d28c5291c0
commit 99b83ea4bd
2 changed files with 3 additions and 3 deletions

View File

@@ -138,8 +138,8 @@ module.exports = function(RED) {
node.error(e,msg);
node.status({fill:"red",shape:"dot",text:"HTTP Error"});
});
request.setTimeout(1000, function() {
node.error("timeout: " + msg);
request.setTimeout(6000, function() {
node.error("HTTP Timeout",msg);
node.status({fill:"red",shape:"ring",text:"HTTP Timeout"});
});
});