THRIFT-4160: Fix use closed(freed) connections in non-blocking server Client: cpp
THRIFT-4160: Fix use closed(freed) connections in non-blocking server
Client: cpp

When failing to add tasks into the thread manager, we close the
corresponding connections, then set the flags of these connections,
which have been already freed.

We should decrease the number of active processors.

This closes #1211

RobberPhex/thrift,Jens-G/thrift,strava/thrift,eamosov/thrift,dcelasun/thrift,bgould/thrift,3013216027/thrift,yongju-hong/thrift,bgould/thrift,bforbis/thrift,RobberPhex/thrift,wfxiang08/thrift,afds/thrift,jfarrell/thrift,eamosov/thrift,dcelasun/thrift,eamosov/thrift,apache/thrift,wfxiang08/thrift,bforbis/thrift,dcelasun/thrift,tanmaykm/thrift,apache/thrift,RobberPhex/thrift,jfarrell/thrift,jeking3/thrift,Jens-G/thrift,apache/thrift,bforbis/thrift,bgould/thrift,wfxiang08/thrift,jeking3/thrift,wfxiang08/thrift,RobberPhex/thrift,apache/thrift,wfxiang08/thrift,dcelasun/thrift,afds/thrift,jfarrell/thrift,eamosov/thrift,markerickson-wf/thrift,bgould/thrift,eamosov/thrift,nsuke/thrift,Jens-G/thrift,Fitbit/thrift,bgould/thrift,creker/thrift,Jens-G/thrift,yongju-hong/thrift,strava/thrift,Jens-G/thrift,markerickson-wf/thrift,apache/thrift,3013216027/thrift,gadLinux/thrift,strava/thrift,strava/thrift,dcelasun/thrift,wfxiang08/thrift,jfarrell/thrift,yongju-hong/thrift,dcelasun/thrift,yongju-hong/thrift,jfarrell/thrift,wfxiang08/thrift,Fitbit/thrift,afds/thrift,bforbis/thrift,jeking3/thrift,jeking3/thrift,yongju-hong/thrift,Fitbit/thrift,apache/thrift,jfarrell/thrift,RobberPhex/thrift,apache/thrift,RobberPhex/thrift,Fitbit/thrift,Jens-G/thrift,jeking3/thrift,dcelasun/thrift,strava/thrift,Fitbit/thrift,bforbis/thrift,gadLinux/thrift,3013216027/thrift,apache/thrift,nsuke/thrift,tanmaykm/thrift,afds/thrift,afds/thrift,bgould/thrift,jeking3/thrift,dcelasun/thrift,eamosov/thrift,strava/thrift,dcelasun/thrift,Jens-G/thrift,3013216027/thrift,RobberPhex/thrift,jfarrell/thrift,RobberPhex/thrift,Fitbit/thrift,wfxiang08/thrift,bforbis/thrift,nsuke/thrift,creker/thrift,afds/thrift,strava/thrift,3013216027/thrift,creker/thrift,bgould/thrift,strava/thrift,markerickson-wf/thrift,apache/thrift,wfxiang08/thrift,apache/thrift,dcelasun/thrift,bforbis/thrift,nsuke/thrift,nsuke/thrift,wfxiang08/thrift,nsuke/thrift,eamosov/thrift,RobberPhex/thrift,wfxiang08/thrift,yongju-hong/thrift,3013216027/thrift,markerickson-wf/thrift,nsuke/thrift,strava/thrift,tanmaykm/thrift,markerickson-wf/thrift,dcelasun/thrift,gadLinux/thrift,gadLinux/thrift,nsuke/thrift,dcelasun/thrift,eamosov/thrift,RobberPhex/thrift,afds/thrift,gadLinux/thrift,afds/thrift,Fitbit/thrift,gadLinux/thrift,afds/thrift,strava/thrift,apache/thrift,bgould/thrift,wfxiang08/thrift,apache/thrift,3013216027/thrift,Jens-G/thrift,creker/thrift,markerickson-wf/thrift,jeking3/thrift,Jens-G/thrift,jeking3/thrift,creker/thrift,yongju-hong/thrift,markerickson-wf/thrift,gadLinux/thrift,RobberPhex/thrift,apache/thrift,creker/thrift,jeking3/thrift,Fitbit/thrift,tanmaykm/thrift,tanmaykm/thrift,yongju-hong/thrift,jfarrell/thrift,nsuke/thrift,3013216027/thrift,dcelasun/thrift,eamosov/thrift,jfarrell/thrift,Jens-G/thrift,3013216027/thrift,jeking3/thrift,nsuke/thrift,jfarrell/thrift,nsuke/thrift,eamosov/thrift,gadLinux/thrift,creker/thrift,yongju-hong/thrift,Jens-G/thrift,RobberPhex/thrift,jeking3/thrift,3013216027/thrift,markerickson-wf/thrift,tanmaykm/thrift,tanmaykm/thrift,bgould/thrift,creker/thrift,3013216027/thrift,markerickson-wf/thrift,3013216027/thrift,3013216027/thrift,tanmaykm/thrift,yongju-hong/thrift,bforbis/thrift,jeking3/thrift,yongju-hong/thrift,eamosov/thrift,bforbis/thrift,strava/thrift,tanmaykm/thrift,Fitbit/thrift,jeking3/thrift,afds/thrift,Fitbit/thrift,bforbis/thrift,afds/thrift,jeking3/thrift,apache/thrift,gadLinux/thrift,markerickson-wf/thrift,Fitbit/thrift,yongju-hong/thrift,eamosov/thrift,RobberPhex/thrift,Jens-G/thrift,eamosov/thrift,RobberPhex/thrift,gadLinux/thrift,yongju-hong/thrift,gadLinux/thrift,nsuke/thrift,Jens-G/thrift,bforbis/thrift,tanmaykm/thrift,bforbis/thrift,RobberPhex/thrift,nsuke/thrift,Fitbit/thrift,markerickson-wf/thrift,strava/thrift,nsuke/thrift,tanmaykm/thrift,bforbis/thrift,eamosov/thrift,RobberPhex/thrift,dcelasun/thrift,creker/thrift,apache/thrift,nsuke/thrift,creker/thrift,wfxiang08/thrift,gadLinux/thrift,nsuke/thrift,apache/thrift,markerickson-wf/thrift,Jens-G/thrift,gadLinux/thrift,nsuke/thrift,Fitbit/thrift,jfarrell/thrift,afds/thrift,bgould/thrift,dcelasun/thrift,gadLinux/thrift,Fitbit/thrift,strava/thrift,bgould/thrift,gadLinux/thrift,3013216027/thrift,strava/thrift,jfarrell/thrift,yongju-hong/thrift,gadLinux/thrift,strava/thrift,creker/thrift,strava/thrift,Jens-G/thrift,bforbis/thrift,Fitbit/thrift,jeking3/thrift,bgould/thrift,jfarrell/thrift,wfxiang08/thrift,jfarrell/thrift,eamosov/thrift,Jens-G/thrift,apache/thrift,bgould/thrift,jfarrell/thrift,RobberPhex/thrift,jfarrell/thrift,strava/thrift,afds/thrift,bgould/thrift,markerickson-wf/thrift,yongju-hong/thrift,apache/thrift,dcelasun/thrift,Fitbit/thrift,gadLinux/thrift,tanmaykm/thrift,creker/thrift,bgould/thrift,Jens-G/thrift,creker/thrift,markerickson-wf/thrift,afds/thrift,creker/thrift,afds/thrift,eamosov/thrift,bforbis/thrift,3013216027/thrift,bforbis/thrift,yongju-hong/thrift,yongju-hong/thrift,bforbis/thrift,jeking3/thrift,Jens-G/thrift,wfxiang08/thrift,dcelasun/thrift