THRIFT-3789: Add destroy connection feature to node Client: Nodejs Patch: James Reggio
THRIFT-3789: Add destroy connection feature to node
Client: Nodejs
Patch: James Reggio

Github Pull Request:
This closes #989
commit b2907fd207736ec95f37919528f6dc6990f007c8
Author: James Reggio <892447fe416129bfb3411412f8f1dde80b3ee7a3@gmail.com>
Date: 2016-04-18T19:49:50Z
THRIFT-3789 Add `destroy` to Connection instance
This commit proxies the `destroy` method from the Thrift Connection
object to its underlying socket, akin to the existing `end` method.
Without `destroy`, it's possible for a failed TLS socket to hold the
Node.js process open. (Calling `end` is not sufficient to close the OS
handle because `end` sends a FIN packet, which is never acknowledged by
the server.)

bgould/thrift,jfarrell/thrift,wfxiang08/thrift,strava/thrift,wfxiang08/thrift,eamosov/thrift,dcelasun/thrift,afds/thrift,bforbis/thrift,strava/thrift,eamosov/thrift,creker/thrift,dcelasun/thrift,RobberPhex/thrift,markerickson-wf/thrift,afds/thrift,dcelasun/thrift,eamosov/thrift,SentientTechnologies/thrift,Jens-G/thrift,wfxiang08/thrift,Jens-G/thrift,cjmay/thrift,eamosov/thrift,RobberPhex/thrift,nsuke/thrift,gadLinux/thrift,jeking3/thrift,bforbis/thrift,RobberPhex/thrift,bufferoverflow/thrift,dcelasun/thrift,Jens-G/thrift,apache/thrift,RobberPhex/thrift,3013216027/thrift,markerickson-wf/thrift,tanmaykm/thrift,x1957/thrift,afds/thrift,strava/thrift,jfarrell/thrift,Jens-G/thrift,dcelasun/thrift,SentientTechnologies/thrift,Fitbit/thrift,jfarrell/thrift,Jens-G/thrift,gadLinux/thrift,jfarrell/thrift,3013216027/thrift,bforbis/thrift,Jens-G/thrift,dtmuller/thrift,dcelasun/thrift,bufferoverflow/thrift,jfarrell/thrift,tanmaykm/thrift,3013216027/thrift,apache/thrift,Jens-G/thrift,bufferoverflow/thrift,yongju-hong/thrift,bgould/thrift,nsuke/thrift,wfxiang08/thrift,pinterest/thrift,Fitbit/thrift,bforbis/thrift,strava/thrift,tanmaykm/thrift,hcorg/thrift,gadLinux/thrift,cjmay/thrift,creker/thrift,3013216027/thrift,gadLinux/thrift,eamosov/thrift,x1957/thrift,dtmuller/thrift,cjmay/thrift,RobberPhex/thrift,bufferoverflow/thrift,nsuke/thrift,yongju-hong/thrift,jeking3/thrift,jfarrell/thrift,creker/thrift,eamosov/thrift,dtmuller/thrift,3013216027/thrift,3013216027/thrift,bforbis/thrift,afds/thrift,bufferoverflow/thrift,bgould/thrift,nsuke/thrift,jfarrell/thrift,apache/thrift,Fitbit/thrift,3013216027/thrift,cjmay/thrift,x1957/thrift,afds/thrift,jeking3/thrift,gadLinux/thrift,jeking3/thrift,Fitbit/thrift,bufferoverflow/thrift,dtmuller/thrift,Fitbit/thrift,eamosov/thrift,jeking3/thrift,tanmaykm/thrift,strava/thrift,apache/thrift,jfarrell/thrift,afds/thrift,yongju-hong/thrift,jeking3/thrift,wfxiang08/thrift,Fitbit/thrift,tanmaykm/thrift,cjmay/thrift,wfxiang08/thrift,project-zerus/thrift,Jens-G/thrift,yongju-hong/thrift,jfarrell/thrift,hcorg/thrift,hcorg/thrift,yongju-hong/thrift,gadLinux/thrift,yongju-hong/thrift,dcelasun/thrift,gadLinux/thrift,dcelasun/thrift,afds/thrift,afds/thrift,gadLinux/thrift,jfarrell/thrift,dtmuller/thrift,SentientTechnologies/thrift,afds/thrift,creker/thrift,nsuke/thrift,yongju-hong/thrift,SentientTechnologies/thrift,markerickson-wf/thrift,SentientTechnologies/thrift,yongju-hong/thrift,creker/thrift,hcorg/thrift,strava/thrift,markerickson-wf/thrift,afds/thrift,creker/thrift,nsuke/thrift,dtmuller/thrift,Jens-G/thrift,strava/thrift,yongju-hong/thrift,markerickson-wf/thrift,project-zerus/thrift,RobberPhex/thrift,Fitbit/thrift,jfarrell/thrift,tanmaykm/thrift,RobberPhex/thrift,pinterest/thrift,bufferoverflow/thrift,apache/thrift,apache/thrift,pinterest/thrift,wfxiang08/thrift,eamosov/thrift,Jens-G/thrift,yongju-hong/thrift,nsuke/thrift,dtmuller/thrift,Jens-G/thrift,bgould/thrift,Fitbit/thrift,RobberPhex/thrift,jeking3/thrift,markerickson-wf/thrift,project-zerus/thrift,strava/thrift,bgould/thrift,project-zerus/thrift,bforbis/thrift,project-zerus/thrift,tanmaykm/thrift,project-zerus/thrift,apache/thrift,yongju-hong/thrift,apache/thrift,yongju-hong/thrift,creker/thrift,pinterest/thrift,hcorg/thrift,apache/thrift,dcelasun/thrift,SentientTechnologies/thrift,markerickson-wf/thrift,nsuke/thrift,x1957/thrift,strava/thrift,strava/thrift,cjmay/thrift,strava/thrift,3013216027/thrift,jfarrell/thrift,dtmuller/thrift,afds/thrift,bufferoverflow/thrift,hcorg/thrift,bforbis/thrift,project-zerus/thrift,pinterest/thrift,jfarrell/thrift,afds/thrift,markerickson-wf/thrift,bgould/thrift,3013216027/thrift,hcorg/thrift,eamosov/thrift,cjmay/thrift,pinterest/thrift,markerickson-wf/thrift,bforbis/thrift,SentientTechnologies/thrift,nsuke/thrift,bufferoverflow/thrift,nsuke/thrift,pinterest/thrift,creker/thrift,3013216027/thrift,nsuke/thrift,RobberPhex/thrift,Fitbit/thrift,bufferoverflow/thrift,x1957/thrift,project-zerus/thrift,apache/thrift,bufferoverflow/thrift,tanmaykm/thrift,dtmuller/thrift,eamosov/thrift,Jens-G/thrift,strava/thrift,gadLinux/thrift,wfxiang08/thrift,markerickson-wf/thrift,dtmuller/thrift,dtmuller/thrift,pinterest/thrift,jeking3/thrift,jeking3/thrift,creker/thrift,wfxiang08/thrift,yongju-hong/thrift,jfarrell/thrift,nsuke/thrift,dcelasun/thrift,3013216027/thrift,project-zerus/thrift,yongju-hong/thrift,wfxiang08/thrift,wfxiang08/thrift,nsuke/thrift,dcelasun/thrift,apache/thrift,bforbis/thrift,wfxiang08/thrift,project-zerus/thrift,creker/thrift,eamosov/thrift,nsuke/thrift,jeking3/thrift,tanmaykm/thrift,creker/thrift,bufferoverflow/thrift,apache/thrift,gadLinux/thrift,jeking3/thrift,apache/thrift,strava/thrift,tanmaykm/thrift,wfxiang08/thrift,jeking3/thrift,RobberPhex/thrift,SentientTechnologies/thrift,eamosov/thrift,cjmay/thrift,bgould/thrift,x1957/thrift,dcelasun/thrift,cjmay/thrift,3013216027/thrift,bgould/thrift,dcelasun/thrift,hcorg/thrift,dcelasun/thrift,bgould/thrift,yongju-hong/thrift,strava/thrift,afds/thrift,pinterest/thrift,SentientTechnologies/thrift,cjmay/thrift,RobberPhex/thrift,hcorg/thrift,jeking3/thrift,dcelasun/thrift,bforbis/thrift,gadLinux/thrift,markerickson-wf/thrift,afds/thrift,3013216027/thrift,apache/thrift,project-zerus/thrift,hcorg/thrift,RobberPhex/thrift,eamosov/thrift,SentientTechnologies/thrift,hcorg/thrift,Jens-G/thrift,SentientTechnologies/thrift,jeking3/thrift,nsuke/thrift,apache/thrift,Fitbit/thrift,cjmay/thrift,jfarrell/thrift,SentientTechnologies/thrift,wfxiang08/thrift,RobberPhex/thrift,creker/thrift,Jens-G/thrift,x1957/thrift,3013216027/thrift,hcorg/thrift,Fitbit/thrift,x1957/thrift,wfxiang08/thrift,SentientTechnologies/thrift,Jens-G/thrift,bgould/thrift,tanmaykm/thrift,eamosov/thrift,bforbis/thrift,apache/thrift,gadLinux/thrift,x1957/thrift,apache/thrift,bforbis/thrift,jeking3/thrift,dtmuller/thrift,pinterest/thrift,creker/thrift,Jens-G/thrift,bufferoverflow/thrift,strava/thrift,markerickson-wf/thrift,creker/thrift,bgould/thrift,bforbis/thrift,bufferoverflow/thrift,x1957/thrift,bgould/thrift,tanmaykm/thrift,gadLinux/thrift,Fitbit/thrift,project-zerus/thrift,pinterest/thrift,hcorg/thrift,Fitbit/thrift,gadLinux/thrift,cjmay/thrift,apache/thrift,Fitbit/thrift,bgould/thrift,hcorg/thrift,eamosov/thrift,pinterest/thrift,bforbis/thrift,jfarrell/thrift,yongju-hong/thrift,RobberPhex/thrift,SentientTechnologies/thrift,x1957/thrift,nsuke/thrift,bforbis/thrift,cjmay/thrift,gadLinux/thrift,afds/thrift,markerickson-wf/thrift,pinterest/thrift,cjmay/thrift,bgould/thrift,markerickson-wf/thrift,dtmuller/thrift,bgould/thrift,x1957/thrift,nsuke/thrift,Fitbit/thrift,3013216027/thrift,dcelasun/thrift,RobberPhex/thrift,strava/thrift,yongju-hong/thrift,gadLinux/thrift,dcelasun/thrift,bforbis/thrift,eamosov/thrift,RobberPhex/thrift,jeking3/thrift,Fitbit/thrift,gadLinux/thrift,dtmuller/thrift,Jens-G/thrift,Jens-G/thrift,pinterest/thrift,project-zerus/thrift,strava/thrift,RobberPhex/thrift,bforbis/thrift