-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Deprecate socket sendall method in favor of SocketStream.send_all #291
Comments
The high-level
This is probably rare but I bet it can happen in real life. The high-level layer can't just delegate worrying about So I think I've argued myself into saying that for now, we should add a note to the documentation warning that if you try calling the socket-level I guess there's even an argument for deprecating and removing the socket-level (Is there ever any reason to call |
I looked at this a little. Definitely not |
On even more investigation: POSIX says, regarding |
#292 for the documentation part. |
I looked at the high level async socket.sendall() trio 0.1.0 code and realized nothing would stop a user from calling sendall() from 2 tasks on the same socket, and having the individual lowlevel send()'s being intertwined, which is probably not what the user wants (ie fragmented/mashed sendall() data ordering).
Some options are:
The text was updated successfully, but these errors were encountered: