Re: maximum sockets

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

 




Lee Chin wrote:

> Now that I did this (ulimit -a) thing, I have a new
> problem... when I am trying to select on more than
> 1200 file descriptors (in the select system call), I
> get a bad filedescriptor error... but when I do a
> fstat on each filedescriptor I sent into select (using
> FD_SET), I dont see that any filedescriptor is bad...
> and from there, select just gets wegded...

An "fd_set" only has room for 1024 descriptors. You will need to use
poll() instead.

-- 
Glynn Clements <glynn.clements@virgin.net>
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux