Skip to content

Fixes possible DoS if a file description has its status changed. #452

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

hnsdeveloper
Copy link

If a file description has its status flags changed through fcntl, either by another thread/process, a possible DoS might arise, as either recv or send will block. This is an attempt to fix that, by using the MSG_DONTWAIT flag on calls to recv and send.

These are the spots where, to the best of my understanding, the operation should be non blocking.

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