Overview
| Artifact ID: | 42f6616d584cb5c96bb9f87d9fb683dad5aafa5b0a6b9ea089922027f60b8975 |
|---|---|
| Ticket: | c6897e6e6a8a65a995ec35c9c297b926bf1b6783
select notifier crashes/misbehaves on fd >= FD_SETSIZE |
| User & Date: | sebres on 2019-11-06 17:41:13 |
Changes
- icomment:
I prefer epoll/poll here, because the applying of subset like<br/><code>FD_SET(fd%FD_SETSIZE, &fds_array[fd/FD_SETSIZE])</code><br/> is hardly possible at the moment (for example for all asynchronous TSD with states/handlers across threads). For example if FD_SETSIZE is 1024 and we have some fds containing 2 "parallel" (in sense of subset) fd's like <code>[10, 1034)</code>, such shifting to every subset (if applied directly over TSD-array) will always intermix states of descriptors there, so some threads awaiting for both could get wrong (confused) results.<br/> This way it is almost impossible to implement without large change of notifier handling or even its architecture.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"