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

Allow registration with empty interest #640

Merged
merged 2 commits into from Sep 1, 2017

Commits on Aug 31, 2017

  1. Allow registration with empty interest

    In order to temporarily disable event listening for a specific handle,
    it may be convenient to reregister it with an empty interest.
    
    This avoids to temporarily deregister the handle before registering it
    again (which, by the way, is not supported on Windows[1]).
    
    Therefore, remove the check that prohibited registration with empty
    interest.
    
    Note that ERROR and HUP may still be triggered in that case.
    
    [1]: tokio-rs#633
    rom1v committed Aug 31, 2017
    Copy the full SHA
    1a3122c View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2017

  1. Improve test for empty interest

    Assert that poll() does not generate a readable event when registered
    with empty interest, but that it generates the pending readable event as
    soon as we reregister with a readable interest.
    rom1v committed Sep 1, 2017
    Copy the full SHA
    f26e792 View commit details
    Browse the repository at this point in the history