TcpConnectionPool refactoring