Skip to content

Add shutdown operation for Stream sockets#67

Open
sternenseemann wants to merge 1 commit intolpeterse:masterfrom
sternenseemann:shutdown
Open

Add shutdown operation for Stream sockets#67
sternenseemann wants to merge 1 commit intolpeterse:masterfrom
sternenseemann:shutdown

Conversation

@sternenseemann
Copy link
Copy Markdown
Contributor

@sternenseemann sternenseemann commented Mar 14, 2021

shutdown is useful since it can be used to send a TCP FIN which in turn
requires the other side to close the connection as well making it
possible to gracefully terminate a TCP connection.

Windows is untested as of now, but CI should take care of that.

Test cases have been added, unfortunately, the exceptions don't seem to
line up across platforms, but that doesn't seem to be a design goal of
this library.

Currently the action is tied to Stream, rather than TCP (which doesn't
make a difference currently), as the action is not necessarily TCP
specific, but I'm not 100% certain.

shutdown is useful since it can be used to send a TCP FIN which in turn
requires the other side to close the connection as well making it
possible to gracefully terminate a TCP connection.

Windows is untested as of now, but CI should take care of that.

Test cases have been added, unfortunately, the exceptions don't seem to
line up across platforms, but that doesn't seem to be a design goal of
this library.

Currently the action is tied to Stream, rather than TCP (which doesn't
make a difference currently), as the action is not necessarily TCP
specific, but I'm not 100% certain.
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