Skip to content

[471] - Close underlying HTTP Client on closing Connection #674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: http-client-refactor-2
Choose a base branch
from

Conversation

Varun0157
Copy link

@Varun0157 Varun0157 commented Aug 9, 2025

(Addresses #471).

What type of PR is this?

  • Bug Fix

Description

Currently, on session closure, the thrift backend invokes self._transport.close() which simply releases a connection back to the underlying pool. It does not close the pool itself. This leads to the TCP connection not being closed properly and a dangling CLOSE_WAIT state as pointed out in the above issue.

Thus, we rename _transport.close() to the more appropriate _transport.release_connection() and implement a new _transport.close() that actually closes the underlying pool.

We invoke this method on SEA backend session closure as well.

How is this tested?

Related Tickets & Documents

#471

@Varun0157 Varun0157 marked this pull request as draft August 13, 2025 07:31
@Varun0157 Varun0157 changed the base branch from main to http-client-refactor-2 August 13, 2025 07:31
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.

1 participant