Skip to content

Conversation

taytzehao
Copy link
Contributor

Created a new Connection pool for the cloned client. The copy performed by the clone := *c operation is just a shallow copy. This causes the ConnPool in the clone to be referring to the ConnPool in the old Client. When a new hook is added to the client, the hook is added to the newly cloned hook rather than the old one.

Added unit test case.

#2561

@taytzehao taytzehao changed the title add comment withTimeout create NewConnPool Jul 20, 2023
Copy link
Member

@ndyakov ndyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taytzehao initially i was thinking this makes sense, but after more investigation I am wondering if this was not by design. Needs deeper investigation.

@ndyakov
Copy link
Member

ndyakov commented Jun 5, 2025

Well @taytzehao I do think this is by design to reuse the same pool, don't you think? Closing this PR, but feel free to reopen.

@ndyakov ndyakov closed this Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants