public static void closeClient ( TServiceClient client ) { if ( client == null ) { return ; } try { TProtocol proto = client . getInputProtocol ( ) ; if ( proto != null ) { proto . getTransport ( ) . close ( ) ; } } catch ( Throwable e ) { logger . warn ( "close input transport fail" , e ) ; } try { TProtocol proto = client . getOutputProtocol ( ) ; if ( proto != null ) { proto . getTransport ( ) . close ( ) ; } } catch ( Throwable e ) { logger . warn ( "close output transport fail" , e ) ; } }
close internal transport