New submission from andres:
Repeated socket connection attempts hang for >2s on Python 2.5.1 & OS X
10.4 after 250 attempts have been made.
----------
components: Library (Lib), Macintosh
files: sockettest.py
messages: 56601
nosy: andres
severity: normal
status: open
title: socket.py hangs on Mac OS X
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file8576/sockettest.py
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1305>
__________________________________
import sys
import time
import socket
def main():
for i in range(0,1000,1):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
t0 = time.time()
try:
s.connect(('127.0.0.1',9999))
except:
pass
t1 = time.time()
if t1-t0>1:
print str(i)+': '+str(t1-t0)+ ' seconds'
if __name__ == '__main__':
main()
sys.exit()
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com