filedescriptor out of range in select()

Paolo Invernizzi paoloinvernizzi at dmsware.com
Thu Jun 26 10:01:30 EDT 2003


Fredrik Lundh wrote:

> but that doesn't necessarily mean that the #define in an include file
> somewhere automagically picks up the kernel configuration, does it?

You are right, obviously.

> (a quick googling brings up some posts about FreeBSD machines with
> FD_SETSIZE=256 and maxuserfiles>1024 etc.  dunno if they've made
> their configuration tools smarter, but in any case, "poll" is the "right
> way" to deal with large number of file handles (compared to "select",
> at least -- there are better but platform-specific ways to do things
> if you want to...))

Right again.

Many thanks for the help

---
Paolo







More information about the Python-list mailing list