Fix connection pool for native and thrift protocols