[Live-devel] Remove usage of select syscall on Linux
Russell Greene
russell at shotover.com
Fri Aug 21 09:56:44 PDT 2026
FD_SETSIZE is defined correctly, but doesn't that represent a pretty
artificial limitation of live555, considering there are ways to get
select-style functionality?
And this is not a niche system, at least all glibc linux systems have this
issue?
We can probably get away with our own task scheduler and not patching
live555, so that's good at least.
Russell
On Wed, Aug 19, 2026 at 8:37 PM Ross Finlayson <finlayson at live555.com>
wrote:
>
>
> > 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/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20260821/797310ba/attachment.htm>
More information about the live-devel
mailing list