Cloak
Cloak copied to clipboard
Feature request: Hybrid connection pooling mode
Hello,
I got an idea for a useful feature:
Add a new parameter: Multiplex = true/false with default being true for NumConn > 0
If Multiplex = false and NumConn > 0. Then the connections are used as a pool (single connection for single tcp connection) and any excess TCP connections behave as NumConn = 0 until a pooled connection is free.
NumConn = 0 automatically implies Multiplex = false.
If I get some time I'll try to implement this.
that's cool:)
除了数据库连接,没人这么玩的。 因为要处理上下文的切换、后续是否还有数据会推送到之前的连接中? 我认为,这个成本高于重新建立一个新连接的成本。