mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-26 04:55:58 +03:00
[GH-ISSUE #182] Feature request: Hybrid connection pooling mode #148
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#148
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @notsure2 on GitHub (Mar 9, 2022).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/182
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.
@qwerttvv commented on GitHub (Apr 3, 2022):
that's cool:)
@dev4u commented on GitHub (Apr 6, 2022):
除了数据库连接,没人这么玩的。
因为要处理上下文的切换、后续是否还有数据会推送到之前的连接中?
我认为,这个成本高于重新建立一个新连接的成本。