[issue12287] ossaudiodev: stack corruption with FD >= FD_SETSIZE

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jun 10 13:47:16 CEST 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> I don't understand if socket file descriptors are different than
> (classic) file descriptors.

On Windows, sockets are completely independent from file descriptors.

A socket id can be large (typically over 1000), fortunately a fd_set is not indexed by descriptors; FD_SET just appends the socket descriptor to the array; there is a limit of 64 sockets, but no limit on the value of a descriptor.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12287>
_______________________________________


More information about the Python-bugs-list mailing list