A tcp-ish stream cannot be reused.
However, a tcp conn pool has alternative values
- The upstream tcp connections can be preallocated
There is also a slight chance that an upstream connection is created but downstream tcp proxy decides to close the downstream connection.
- The upstream stream can be carried by http CONNECT request
When you choose http2 connect or h3 connect, even though the above preallocate is not enabled, you may gain some benefits.
Our use cases enforce expensive TLS handshake. Under this constraint, creating a new http2 connect stream is greatly cheaper than establishing a TLS connection.
-Yuchen