[ 
https://issues.apache.org/jira/browse/THRIFT-5719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adarsh sonkar updated THRIFT-5719:
----------------------------------
    Summary: Nodejs thrift 17 connection_gone() called after some time, after 
upgrade thrift 12 ->17  (was: Nodejs thrift 18 connection_gone() called after 
some time, after upgrade thrift 12 ->17)

> Nodejs thrift 17 connection_gone() called after some time, after upgrade 
> thrift 12 ->17
> ---------------------------------------------------------------------------------------
>
>                 Key: THRIFT-5719
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5719
>             Project: Thrift
>          Issue Type: Bug
>          Components: Node.js - Library
>    Affects Versions: 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0
>            Reporter: Adarsh sonkar
>            Priority: Major
>
> 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*
> _{color:#de350b}this._handle.close(() => {{color}_
>       _{color:#de350b}debug('emit close');{color}_
>       _{color:#de350b}this.emit('close', isException);{color}_
> finally calling -> */thrift-0.17.0/lib/nodejs/lib/thrift/connection.js : 
> Connection.prototype.connection_gone*
> _{color:#de350b}this.emit("reconnecting", {{color}_
>     _{color:#de350b}delay: self.retry_delay,{color}_
>     _{color:#de350b}attempt: self.attempts{color}_
>  
> 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 =>
> {color:#00875a}*as we increase the input rate the disconnection happens 
> faster (earlier)*{color}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to