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

Use exclusive reference &mut for all Socket operations #843

Closed
fujiapple852 opened this issue Nov 29, 2023 · 0 comments · Fixed by #868
Closed

Use exclusive reference &mut for all Socket operations #843

fujiapple852 opened this issue Nov 29, 2023 · 0 comments · Fixed by #868
Labels
Milestone

Comments

@fujiapple852
Copy link
Owner

The Socket abstracts over an OS socket and is not thread safe. Many Socket operations mutate internal buffers. By using exclusive (&mut) references in all Socket operations we solve both of these issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant