-
Notifications
You must be signed in to change notification settings - Fork 228
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
Notify fails to report file creation events if they happen too quickly #267
Comments
This seems to be caused by hannobraun/inotify-rs#156: contrary to the documentation,
If |
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes notify-rs#267.
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes notify-rs#267.
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes notify-rs#267.
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes notify-rs#267.
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes notify-rs#267.
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes notify-rs#267.
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes notify-rs#267.
The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes #267.
…to v4) (#269) The `inotify` crate's `Inotify::read_events` method does not read all available events from inotify (see hannobraun/inotify-rs#156), only one buffer's worth. Using level-triggered events tells Mio to report events on the inotify fd until all events have been read. Fixes #267.
When INotify::read_buffer finally returns an empty iterator, we break out of the loop. This should allow polling with edge triggering.
When INotify::read_buffer finally returns an empty iterator, we break out of the loop. This should allow polling with edge triggering.
When watching a directory, if many files are created in rapid succession, notify reports the first few creations but then stops reporting the rest. If, after a pause, another file is created in the directory, the missing reports do come in.
Linux, Fedora Core 32, x86_64
rustc 1.47.0 (18bf6b4f0 2020-10-07)
notify 5.0.0-pre.4
Test case:
Sample output:
The text was updated successfully, but these errors were encountered: