| 255 | }; |
| 256 | |
| 257 | PooledTCPSocketStream::~PooledTCPSocketStream() { |
| 258 | if (drop || !pool->release(ep, m_underlay)) { |
| 259 | delete m_underlay; |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | extern "C" ISocketClient* new_tcp_socket_pool(ISocketClient* client, uint64_t TTL_us, bool client_ownership) { |
| 264 | return new TCPSocketPool(client, TTL_us, client_ownership); |