Changes between Version 1 and Version 3 of Ticket #18327
- Timestamp:
- Mar 27, 2023, 10:13:01 AM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18327 – Description
v1 v3 1 1 When another end of the TCP socket is closed, select() should report that in rfds set. It doesn't as of hrev56862, and doesn't wake from blocking either. 2 2 This prevents any software using select() from tracking disconnect events, and freeing clients appropriately. 3 Will attach a tiny program that reproduces this. On systems susceptible to the bug it'd hang and never exit. 3 4 Attached a tiny program that reproduces this. On systems susceptible to the bug it'd hang and never exit. 4 5 5 6 6 7 Update: The poll() facility is subject to this bug as well, i.e. listening for POLLIN | POLLERR | POLLHUP never notices a HUP event. 8 9 Update (2): Haiku-specific API wait_for_objects() from <OS.h> also hangs.