Overview
| Artifact ID: | 5be94df4a58e68b551be5e647042ab3201b408ce4b6656cfc6006ea3e88a3409 |
|---|---|
| Ticket: | c6897e6e6a8a65a995ec35c9c297b926bf1b6783
select notifier crashes/misbehaves on fd >= FD_SETSIZE |
| User & Date: | obj on 2019-11-07 01:48:08 |
Changes
- icomment:
a) There are other non-socket paths that can introduce fds to the notifier. Notably, I believe external code can call Tcl_CreateFileHandler(). How are you going to handle that? b) In 8.7, AIUI, there are several possible notifiers so restricting the valid FD range at FD creation time seems like it will artificially restrict other notifier types that aren't limited by FD_SETSIZE c) what about code that uses many FDs but does not run the event loop? This is probably an uncommon case but it would be surprising for that to break I tend to agree that this needs to be dealt with in the notifier somehow. Can we maybe synthesize errors for channels that exceed FD_SETSIZE at the point where the notifier actually gets them (and not add them to the fd_set at all)?
- login: "obj"
- mimetype: "text/x-fossil-wiki"
- username: "obj"