|
@ -437,11 +437,11 @@ node.http.createClient = function (port, host) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
node.debug("HTTP CLIENT onDisconnect. readyState = " + client.readyState); |
|
|
//node.debug("HTTP CLIENT onDisconnect. readyState = " + client.readyState);
|
|
|
|
|
|
|
|
|
// If there are more requests to handle, reconnect.
|
|
|
// If there are more requests to handle, reconnect.
|
|
|
if (requests.length > 0 && client.readyState != "opening") { |
|
|
if (requests.length > 0 && client.readyState != "opening") { |
|
|
node.debug("HTTP CLIENT: reconnecting readyState = " + client.readyState); |
|
|
//node.debug("HTTP CLIENT: reconnecting readyState = " + client.readyState);
|
|
|
client.connect(port, host); // reconnect
|
|
|
client.connect(port, host); // reconnect
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|