[issue1305] socket.py hangs on Mac OS X

2007-10-22 Thread Facundo Batista
Facundo Batista added the comment: What happens if you force the garbage collector to collect the just opened and not used socket? Maybe the problem is that the operating system run out of file handlers (if you leave some time in the middle, the GC collects the sockets, freeinig the file handler

[issue1305] socket.py hangs on Mac OS X

2007-10-22 Thread Guido van Rossum
Guido van Rossum added the comment: Odd. Smells like an OSX issue that we can't do anything about. I note that only attempts 250, 500, 750 (and so on if you increase the counter) have this behavior. I wonder if you'r simply filling up some kernel queue too fast; if I insert time.sleep(0.001) i

[issue1305] socket.py hangs on Mac OS X

2007-10-19 Thread andres
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 M