Skip to content

Bug fix: connections managers to ensure open connections have socket timeout set based on ConnectionConfig upon lease#724

Merged
ok2c merged 1 commit into
apache:5.5.xfrom
ok2c:fix_leased_connection_socket_timeout
Sep 15, 2025
Merged

Bug fix: connections managers to ensure open connections have socket timeout set based on ConnectionConfig upon lease#724
ok2c merged 1 commit into
apache:5.5.xfrom
ok2c:fix_leased_connection_socket_timeout

Conversation

@ok2c

@ok2c ok2c commented Sep 14, 2025

Copy link
Copy Markdown
Member

I was looking at the pooled connection activation / passivation logic and found out that connections do not reset the socket timeout on leased open connections, which can lead to some random timeout setting from the previous and likely completely unrelated message exchange. This is a defect the way I see it.

@rschmitt Please take a look and let me know if you disagree.

@arturobernalg Could you please double-check?

…timeout set based on ConnectionConfig upon lease

@rschmitt rschmitt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I guess either contract could be plausible, but the new behavior makes more sense to me.

@arturobernalg arturobernalg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Reapply socket timeout from ConnectionConfig on activation to prevent endpoint overrides leaking across leases.

@ok2c ok2c merged commit cb2ccda into apache:5.5.x Sep 15, 2025
8 checks passed
@ok2c ok2c deleted the fix_leased_connection_socket_timeout branch September 15, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants