mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-04 21:37:58 +03:00
Fix op cancelation in poll driver
This commit is contained in:
parent
ae5980cdd9
commit
a83ed4c3fa
1 changed files with 4 additions and 0 deletions
|
@ -156,6 +156,8 @@ impl<T> Handler for StreamOpsHandler<T> {
|
||||||
if result.is_pending() {
|
if result.is_pending() {
|
||||||
item.flags.insert(Flags::RD);
|
item.flags.insert(Flags::RD);
|
||||||
self.inner.api.register(item.fd, id, Interest::Readable);
|
self.inner.api.register(item.fd, id, Interest::Readable);
|
||||||
|
} else {
|
||||||
|
item.flags.remove(Flags::RD);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Change::Writable => {
|
Change::Writable => {
|
||||||
|
@ -170,6 +172,8 @@ impl<T> Handler for StreamOpsHandler<T> {
|
||||||
if result.is_pending() {
|
if result.is_pending() {
|
||||||
item.flags.insert(Flags::WR);
|
item.flags.insert(Flags::WR);
|
||||||
self.inner.api.register(item.fd, id, Interest::Writable);
|
self.inner.api.register(item.fd, id, Interest::Writable);
|
||||||
|
} else {
|
||||||
|
item.flags.remove(Flags::WR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Change::Error(err) => {
|
Change::Error(err) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue