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

Pause before close to avoid TIME_WAIT #918

Open
rossabaker opened this issue Nov 2, 2024 · 2 comments
Open

Pause before close to avoid TIME_WAIT #918

rossabaker opened this issue Nov 2, 2024 · 2 comments

Comments

@rossabaker
Copy link
Member

Maybe a bit off-topic for this PR, but when returning a Connection: close do you pause before closing to allow the client to do an active close avoiding TIME_WAIT on the server side?

Originally posted by @milessabin in #913 (comment)

@rossabaker
Copy link
Member Author

I haven't researched this yet, but Section 9.6 of RFC 9112 is probably what we want to do.

@milessabin
Copy link

IIRC shutdownOutput in Socket/SocketChannel were introduced to support exactly this scenario.

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

2 participants