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

Need a way to close a socket read or write part individually #19

Open
schveiguy opened this issue Nov 27, 2018 · 3 comments
Open

Need a way to close a socket read or write part individually #19

schveiguy opened this issue Nov 27, 2018 · 3 comments

Comments

@schveiguy
Copy link
Owner

schveiguy commented Nov 27, 2018

Sockets can be full duplex, we need a way to close individually the read and write end of the socket, as some protocols won't work unless you close your writing end first.

@MartinNowak
Copy link
Collaborator

Any example @schveiguy, I'm not sure whether you're speaking of TCP close or HTTP close or sth. entirely different.

@schveiguy
Copy link
Owner Author

I'm thinking of protocols which require shutdown of the send side before receiving the response. Though at the time I was confused about http (the protocol I'm trying to use), and thought I needed to do that there, I know there are some protocols that require a shutdown of the write side.

@schveiguy
Copy link
Owner Author

Basically, we need an API for this: http:https://man7.org/linux/man-pages/man2/shutdown.2.html

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