Changes between Version 1 and Version 3 of Ticket #18327


Ignore:
Timestamp:
Mar 27, 2023, 10:13:01 AM (14 months ago)
Author:
LekKit
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18327 – Description

    v1 v3  
    11When 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.
    22This 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
     4Attached a tiny program that reproduces this. On systems susceptible to the bug it'd hang and never exit.
    45
    56
    67Update: The poll() facility is subject to this bug as well, i.e. listening for POLLIN | POLLERR | POLLHUP never notices a HUP event.
     8
     9Update (2): Haiku-specific API wait_for_objects() from <OS.h> also hangs.