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

Ikruglov/sysread implementation #83

Closed
wants to merge 3 commits into from

Conversation

ikruglov
Copy link

Fix issues noticed by Pavel Shaydo in the maillist

Ivan Kruglov added 2 commits April 27, 2014 15:08
WIN32 doesn't support MSG_DONTWAIT, need to swith fh to nonblockng mode manually.
For Unix still use MSG_DONTWAIT because of fewer syscalls
As Pavel Shaydo noticed:
The whole __try_read_sock subroutine looks a bit inefficient to me, you are
reading data with MSG_PEEK, just to check if there's any, and then you
throwing it away. Why not save it into {__buf} and avoid reading it again?
@ikruglov
Copy link
Author

Took piece of code from previous implementation

@ikruglov ikruglov closed this Apr 29, 2014
@ikruglov
Copy link
Author

will do another pull request based on master

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.

None yet

2 participants