tokio-rs / tokio-core

I/O primitives and event loop for async I/O in Rust
Apache License 2.0
638 stars 115 forks source link

Backport critical fix in PollEvented from tokio crate #317

Closed glebpom closed 6 years ago

glebpom commented 6 years ago

Hi,

https://github.com/tokio-rs/tokio/pull/250 contains the critical fix in PollEvented. This fix should also be applied to tokio-core because this code was backported from tokio crate recently

carllerche commented 6 years ago

Thanks for the reports. Have you verified that the issue is present here?

glebpom commented 6 years ago

Absolutely. The missprint is in https://github.com/tokio-rs/tokio-core/blob/master/src/reactor/poll_evented2.rs In fact, we have observed a high CPU usage on slow connections after upgrading to latest version

carllerche commented 6 years ago

Thanks. I'll try to get that fix released in a bit.