[Python-bugs-list] [ python-Bugs-774751 ] slow socket binding & netinfo lookups
SourceForge.net
noreply@sourceforge.net
Mon, 21 Jul 2003 00:05:41 -0700
Bugs item #774751, was opened at 2003-07-21 09:57
Message generated for change (Comment added) made by anthonybaxter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=774751&group_id=5470
Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Stuart Bishop (zenzen)
Assigned to: Jack Jansen (jackjansen)
Summary: slow socket binding & netinfo lookups
Initial Comment:
The following code takes < 1 second to run under Python
2.1, but 20 seconds to run under Python 2.2 or 2.3 on a top-
end PowerBook running OSX 10.2. It is part of the Zope
startup routine.
def max_server_sockets():
sl = []
while 1:
try:
s = socket.socket (socket.AF_INET,
socket.SOCK_STREAM)
s.bind (('',0))
s.listen(5)
sl.append (s)
except:
break
num = len(sl)
for s in sl:
s.close()
del sl
return num
----------------------------------------------------------------------
>Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-07-21 17:05
Message:
Logged In: YES
user_id=29957
Is this something that should be looked at for 2.3rc2?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=774751&group_id=5470