Skip to content
New issue

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

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

Already on GitHub? # to your account

Make sure TCP connections end gracefully #113

Merged
merged 1 commit into from
Jun 8, 2023
Merged

Conversation

ItsDrike
Copy link
Member

@ItsDrike ItsDrike commented Jun 8, 2023

TCP connections establish sessions, and expect graceful shut downs (FIN packet). Make sure on connection close, this packet gets sent.

While not having this shutdown functionality should generally not affect us getting the data from the server, or any other functionality of the library, it is a good practice, and some very aggressive firewalls might actually detect and block IPs that don't properly close their TCP connections if this happens multiple times.

@ItsDrike ItsDrike added t: bug Something isn't working p: 1 - high This should be addressed quickly a: protocol Related to underlying networking protocol (connections, buffers, readers/writers, type classes) labels Jun 8, 2023
TCP connections establish sessions, and expect graceful shut downs (FIN
packet). Make sure on connection close, this packet gets sent.

While not having this shutdown functionality should generally not affect
us getting the data from the server, or any other functionality of the
library, it is a good practice, and some very aggressive firewalls might
actually detect and block IPs that don't properly close their TCP
connections if this happens multiple times.
@ItsDrike ItsDrike force-pushed the graceful-tcp-shutdown branch from bb81bf2 to f72cc4a Compare June 8, 2023 13:55
@ItsDrike ItsDrike merged commit cd7c30c into main Jun 8, 2023
@ItsDrike ItsDrike deleted the graceful-tcp-shutdown branch June 8, 2023 13:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
a: protocol Related to underlying networking protocol (connections, buffers, readers/writers, type classes) p: 1 - high This should be addressed quickly t: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant