Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0
-
None
-
None
-
Important
Description
After thrift upgade v12 to v17
Long running thrift connections(with continuous payload) are disconnected. (node v16.15.1)
stacktrace shows call starts from -> net.js : Socket.prototype._destroy
this._handle.close(() => {
debug('emit close');
this.emit('close', isException);
finally calling -> /thrift-0.17.0/lib/nodejs/lib/thrift/connection.js : Connection.prototype.connection_gone
this.emit("reconnecting", {
delay: self.retry_delay,
attempt: self.attempts
we use below parameters to create client connection =>
var thriftConnection = thrift.createConnection(thriftServerIP, port, {
max_attempts : Number.MAX_VALUE,
retry_max_delay : 1000,
timeout : 10000
});
our observation =>
as we increase the input rate the disconnection happens faster (earlier)