[Python-bugs-list] [Bug #110843] Low FD_SETSIZE limit on NT (PR#41)
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 25 Aug 2000 07:13:23 -0700
Bug #110843, was updated on 2000-Aug-01 14:15
Here is a current snapshot of the bug.
Project: Python
Category: Windows
Status: Open
Resolution: None
Bug Group: Feature Request
Priority: 5
Summary: Low FD_SETSIZE limit on NT (PR#41)
Details: Jitterbug-Id: 41
Submitted-By: brian@digicool.com
Date: Fri, 30 Jul 1999 10:10:49 -0400 (EDT)
Version: 1.5.2
OS: NT
It appears that win32 has a default limit of 64 descriptors that
can be handed to the select() function. This is pretty low for
any serious async servers, and causes them to raise lots of errors
under very moderate loads.
We at DC ran into this using Medusa as a basis for ZServer, which
serves Zope sites. It turns out that you can actually add a define
when compiling the python15.dll for windows to bump the default
fd limit to a more reasonable level.
The approach _I_ took was to add the define: FD_SETSIZE=1024
to the preprocessor options in the MSVC project settings for
python15.dll, though I imagine you could also roll the define
into config.h or something (so long as it's defined before
windows.h or any of the select / socket include files are
referenced). It would make life much easier for win32 server
developers if this define could find its way into the next
official python release :^)
Thanks!
Brian Lloyd brian@digicool.com
Software Engineer 540.371.6909
Digital Creations http://www.digicool.com
====================================================================
Audit trail:
Fri Jul 30 10:43:41 1999 guido moved from incoming to request
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110843&group_id=5470