[GH-ISSUE #182] Feature request: Hybrid connection pooling mode #148

Open
opened 2026-02-26 12:34:07 +03:00 by kerem · 2 comments
Owner

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.

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.
Author
Owner

@qwerttvv commented on GitHub (Apr 3, 2022):

that's cool:)

<!-- gh-comment-id:1086968859 --> @qwerttvv commented on GitHub (Apr 3, 2022): that's cool:)
Author
Owner

@dev4u commented on GitHub (Apr 6, 2022):

除了数据库连接,没人这么玩的。
因为要处理上下文的切换、后续是否还有数据会推送到之前的连接中?
我认为,这个成本高于重新建立一个新连接的成本。

<!-- gh-comment-id:1089548515 --> @dev4u commented on GitHub (Apr 6, 2022): 除了数据库连接,没人这么玩的。 因为要处理上下文的切换、后续是否还有数据会推送到之前的连接中? 我认为,这个成本高于重新建立一个新连接的成本。
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#148
No description provided.