mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Support TCP sockets HUP&RDHUP events
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
00ffc5266d
commit
dc06d7c37d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user