Implemented connection pooling for Thrift