Skip to content

How to make multiple curly instances maintain separate connections to same host? #394

Open
@A-Posthuman

Description

@A-Posthuman

My program makes several curly instances to the same host, but for my use case I prefer that each curly instance maintain a separate SSL HTTP/2 connection, and then "stickily" reuse it. So ideally, there is 1 multiplexed HTTP/2 connection per curly instance, and the same curly instance reuses the same SSL connection - the connections don't get mixed up or used randomly between the curly instances.

Is this possible? When I turn on verbose mode I see messages initially appearing to indicate each new curly instance is making a new connection (I see different "#" connection numbers like 0, 1, and 2 if I make 3 curly instances. But then when I have verbose mode on subsequent requests among the different instances, they all seem to be using connection #0 ?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions