[Live-devel] Remove usage of select syscall on Linux
Ross Finlayson
finlayson at live555.com
Wed Aug 19 19:33:34 PDT 2026
> On Aug 19, 2026, at 1:22 PM, Russell Greene via live-devel <live-devel at us.live555.com> wrote:
>
> We are auditing all our code and dependencies for usage of `select` as it is not safe to use on applications with more than 1024 open fds
Assuming that’s true, our implementation of “BasicTaskScheduler” does not allow socket numbers > FD_SETSIZE. Is FD_SETSIZE not defined to be 1024 (or less) on these systems??
If you want to a scheduler that uses something other than “select()”, then the way to do this would be to define and implement your own subclass of “TaskScheduler” - not change the “BasicTaskScheduler” code, which, as its name suggests, is just a ‘basic’ scheduler (that nonetheless most people have been happily using for more than two decades).
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list