[Zope-Coders] Re: [Zope-Checkins] CVS: Zope/lib/python/ZServer - utils.py:1.1 __init__.py:1.30

Chris McDonough chris.mcdonough@cox.net
19 Jul 2003 23:23:49 -0400


Holy hat!  I had no idea what that code was doing.  It's pretty dumb to
dwim this setting in this way even if it wasn't so expensive.

We should make this a config file option for 2.7.  I will do so now...

What about 2.6?  Another envvar? (shudder)

- C

On Sat, 2003-07-19 at 21:30, Stuart Bishop wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> On Sunday, July 20, 2003, at 11:09  AM, Stuart Bishop wrote:
> 
> > lookupd go through the roof). I have no idea if this is due to a bug
> > in the Python sockets module, a bug in the max_server_sockets code, or
> > just the way it is supposed to work.
> 
> > This method is not called on the 2.6 branch.
> 
> Actually, the same code *is* being called in the 2.6 branch. It
> looks like the problem is changes in Python's socket code between
> 2.1 and 2.2.
> 
> Python 2.1.3 (#1, Apr 18 2003, 07:04:50)
> [GCC 3.1 20020420 (prerelease)] on darwin6
> Type "copyright", "credits" or "license" for more information.
>  >>> import time, max_sockets
>  >>> time.ctime(); max_sockets.max_server_sockets(); time.ctime()
> 'Sun Jul 20 11:24:13 2003'
> 253
> 'Sun Jul 20 11:24:13 2003'
>  >>>
> 
> Python 2.2.3 (#2, Jul  8 2003, 00:07:27)
> [GCC 3.1 20020420 (prerelease)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import time, max_sockets
>  >>> time.ctime(); max_sockets.max_server_sockets(); time.ctime()
> 'Sun Jul 20 11:22:52 2003'
> 253
> 'Sun Jul 20 11:23:16 2003'
>  >>>
> 
> I'll stick a bug report in the Python tracker, although if this is
> actually a Python bug I doubt it will get fixed for Python2.3 and
> we won't be seeing another 2.2 release for some time, if ever.
> So I'd still like to get this resolved in the Zope HEAD.
> 
> - -- 
> Stuart Bishop <zen@shangri-la.dropbear.id.au>
> http://shangri-la.dropbear.id.au/
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (Darwin)
> 
> iD8DBQE/GfCmh8iUz1x5geARAhNkAJ4uULhOJAVDE/xFR0xWm93JiHodPgCeIoQk
> 4sPAyYpZywL5Ba94qZZqBqE=
> =0UA4
> -----END PGP SIGNATURE-----
>