You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Chris Thompson (JIRA)" <ji...@apache.org> on 2015/03/30 18:14:52 UTC
[jira] [Created] (THRIFT-3060) Node.js client retry logic doesn't
flush offline queue on reconnect
Chris Thompson created THRIFT-3060:
--------------------------------------
Summary: Node.js client retry logic doesn't flush offline queue on reconnect
Key: THRIFT-3060
URL: https://issues.apache.org/jira/browse/THRIFT-3060
Project: Thrift
Issue Type: Bug
Components: Node.js - Library
Affects Versions: 0.9.2
Reporter: Chris Thompson
Priority: Minor
The Node.js client includes retry logic in case the connection terminates unexpectedly. On reconnect, the `offline_queue` variable never gets reset, so any requests still in the queue will get processed on every reconnect.
In addition, the variables the keep track of the retry state are not initialized prior to a successful connection, meaning that if the initial connection doesn't succeed, that the retry timer is set to `NaN` and doesn't work as expected.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)