Subject: Re: reached select() limit

Re: reached select() limit

From: eugeny gladkih <john_at_drweb.com>
Date: Wed, 1 Feb 2017 15:32:21 +0300

On 01/31/2017 07:28 PM, Zan Lynx wrote:
> On 01/31/2017 06:41 AM, eugeny gladkih wrote:
>> no, that's not a truth. you may use any socket number on all modern UNIX
>> systems. the only thing you need - you have to allocate enough memory
>> for fd_set. one more thing you have to know is still here. on Solaris
>> you may define the FD_SETSIZE preprocessor constant to any numer which
>> is big enough.
>
> I'd be careful of that in Linux. I have always been told that FD_SETSIZE
> is fixed at the time of glibc compile. That may not be true of course,
> and it may not be true for other C libraries.
>
> I would certainly not assume that I can just redefine FD_SETSIZE without
> double-checking.
>

that was a piece of production code. it works well.

-- 
Yours sincerely, Eugeny.
GM of Enterprise Solutions Department
Doctor Web, Ltd.
http://www.drweb.com, +79119997425
Received on 2017-02-01