You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "alexey (JIRA)" <ji...@apache.org> on 2014/03/06 13:26:42 UTC
[jira] [Created] (THRIFT-2390) no close event when connection lost
alexey created THRIFT-2390:
------------------------------
Summary: no close event when connection lost
Key: THRIFT-2390
URL: https://issues.apache.org/jira/browse/THRIFT-2390
Project: Thrift
Issue Type: Bug
Components: Node.js - Library
Reporter: alexey
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) {
return;
}
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;
}
--
This message was sent by Atlassian JIRA
(v6.2#6252)