This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bboneva
Recipients bboneva
Date 2017-09-27.11:24:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506511485.01.0.154975027568.issue31610@psf.upfronthosting.co.za>
In-reply-to
Content
The select function does not work for file descriptors with number >= 1024. It has FD_SETSIZE limit (see https://stackoverflow.com/questions/7976388/increasing-limit-of-fd-setsize-and-select#7977082).
So, serve_forever won't work if more than 1024 file descriptors are opened in the process (ValueError: filedescriptor out of range in select() is raised).
Moreover, the select function is considered inefficient, hard to scale and old-fashioned nowadays. Refer to https://stackoverflow.com/questions/970979/what-are-the-differences-between-poll-and-select#3951845.
Better alternative will be to use poll or epoll even.
History
Date User Action Args
2017-09-27 11:24:45bbonevasetrecipients: + bboneva
2017-09-27 11:24:45bbonevasetmessageid: <1506511485.01.0.154975027568.issue31610@psf.upfronthosting.co.za>
2017-09-27 11:24:44bbonevalinkissue31610 messages
2017-09-27 11:24:44bbonevacreate