Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
thrift nodejs lib (master)
There is no indication that connection lost if reconnect is not setup.
(There is no "close" event from connection object or RPC error callback)
File: connection.js:167
Connection.prototype.connection_gone = function () {
var self = this;
// If a retry is already in progress, just let that happen
if (this.retry_timer || !this.max_attempts)
Should be changed to
Connection.prototype.connection_gone = function () {
var self = this;
// If a retry is already in progress, just let that happen
if (this.retry_timer) { return; }
if(!this.max_attempts)
{ self.emit("close"); return; }