lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] Removing the restriction on number of sockets


From: Stian Skjelstad
Subject: Re: [lwip-devel] Removing the restriction on number of sockets
Date: Fri, 11 Aug 2017 10:44:08 +0200



On Aug 11, 2017 10:35, "goldsimon" <address@hidden> wrote:


Stian Skjelstad wrote:
>Add support for poll(), which does not have this design issue in the
>API

That's a good idea, but it's only a workaround. It doesn't keep select usable for existing socket API applications.

select() is not a good API if you have many thousand possible fd numbers to iterate. I would suggest that if the maximum amount of fds at compile time is detected to be very large, disable support for select even. It is also an edge extreme case for a "light weight" IP stack. If a user wants to support extremes, why not use a suitable api that is standard. Some stacks has select, some poll, some do both, some emulate the other supporting only one internally..

Stian

reply via email to

[Prev in Thread] Current Thread [Next in Thread]