Skip to content
Tcl Source Code Artifact [42f6616d58]
Login

Artifact [42f6616d58]

Artifact 42f6616d584cb5c96bb9f87d9fb683dad5aafa5b0a6b9ea089922027f60b8975:

Ticket change [42f6616d58] - Ticket [c6897e6e6a8a65a9|c6897e6e6a] <i>select notifier crashes/misbehaves on fd &gt;= FD_SETSIZE</i> status still Open with 3 other changes by sebres on 2019-11-06 17:41:13.
D 2019-11-06T17:41:13.910
J icomment I\sprefer\sepoll/poll\shere,\sbecause\sthe\sapplying\sof\ssubset\slike<br/><code>FD_SET(fd%FD_SETSIZE,\s&fds_array[fd/FD_SETSIZE])</code><br/>\sis\shardly\spossible\sat\sthe\smoment\s(for\sexample\sfor\sall\sasynchronous\sTSD\swith\sstates/handlers\sacross\sthreads).\r\nFor\sexample\sif\sFD_SETSIZE\sis\s1024\sand\swe\shave\ssome\sfds\scontaining\s2\s"parallel"\s(in\ssense\sof\ssubset)\sfd's\slike\s<code>[10,\s1034)</code>,\ssuch\sshifting\sto\severy\ssubset\s(if\sapplied\sdirectly\sover\sTSD-array)\swill\salways\sintermix\sstates\sof\sdescriptors\sthere,\sso\ssome\sthreads\sawaiting\sfor\sboth\scould\sget\swrong\s(confused)\sresults.<br/>\r\nThis\sway\sit\sis\salmost\simpossible\sto\simplement\swithout\slarge\schange\sof\snotifier\shandling\sor\seven\sits\sarchitecture.
J login sebres
J mimetype text/x-fossil-wiki
K c6897e6e6a8a65a995ec35c9c297b926bf1b6783
U sebres
Z e0d94d28c365245b2d42380435cd71dc