Support TCP sockets HUP&RDHUP events

This commit is contained in:
Jianfeng Jiang
2024-10-24 09:24:10 +00:00
committed by Tate, Hongliang Tian
parent 00ffc5266d
commit dc06d7c37d
3 changed files with 78 additions and 10 deletions

View File

@ -103,6 +103,7 @@ impl InitStream {
pub(super) fn init_pollee(&self, pollee: &Pollee) {
pollee.reset_events();
pollee.add_events(IoEvents::OUT);
// Linux adds OUT and HUP events for a newly created socket
pollee.add_events(IoEvents::OUT | IoEvents::HUP);
}
}