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

Implements ReadHint for Hup for Linux #26

Closed
wants to merge 1 commit into from
Closed

Conversation

wycats
Copy link
Contributor

@wycats wycats commented Oct 4, 2014

This implements the first part of the strategy outlined in #4.

It updates the tests to take the read hint in the handlers, and
specifically confirm that they get the DataHint first and then the
HupHint.

I believe that the hints are implementable on all of the backends we
intend to support, so I consider it a bug if those tests don't pass on a
supported platform.

Note that this information is called a "hint" because you still need to
handle errors in your read handler, but this may allow you to skip the
extra read syscall as an optimization.

This PR supersedes #5.

HupHint,
ErrorHint,
UnknownHint
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be bitflags since there can be multiple available states, for example data + hup?

This implements the first part of the strategy outlined in #4.

Closes #4.

It updates the tests to take the read hint in the handlers, and
specifically confirm that they get the DataHint first and then the
HupHint.

I believe that the hints are implementable on all of the backends we
intend to support, so I consider it a bug if those tests don't pass on a
supported platform.

Note that this information is called a "hint" because you still need to
handle errors in your read handler, but this may allow you to skip the
extra `read` syscall as an optimization.
@carllerche
Copy link
Member

Resolved by 9a072b2

@carllerche carllerche closed this Oct 6, 2014
@carllerche carllerche deleted the read_hint_take2 branch October 15, 2014 04:41
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.

2 participants