Skip to content
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

Close client connection #336

Closed
LinkTed opened this issue Dec 12, 2018 · 4 comments
Closed

Close client connection #336

LinkTed opened this issue Dec 12, 2018 · 4 comments

Comments

@LinkTed
Copy link

LinkTed commented Dec 12, 2018

Is there a way to close a client connection?

@seanmonstar
Copy link
Member

Dropping all other handles (SendRequest, ResponseFuture, SendStream, RecvStream) for a certain connection should close it.

@panpur
Copy link

panpur commented Apr 24, 2021

@seanmonstar
If I drop those handles, will the connection be closed in synchronous manner?
The reason is, I'm working on app to measure performance of http2 request.
One of the KPI is disconnect time.
So I'm wondering whether this is achievable if it's asynchronous.

@nox
Copy link
Contributor

nox commented May 5, 2021

It is asynchronous in the sense that the drop code of the types mentioned in the previous comment will just wake up the connection task and if the connection task sees there are no more references it will close itself.

@nox
Copy link
Contributor

nox commented May 5, 2021

Closing this because it's not very actionable.

@nox nox closed this as completed May 5, 2021
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

No branches or pull requests

4 participants