Ron Garret wrote: > Geez you people are picky. Since I ran this several times I ran into > the TIM_WAIT problem. Here's the actual transcript:
It's not about being picky, it's about making it clear what your problem is. You're now describing an entirely different problem, hence why it's important to be clear about _precisely_ what it is you're doing and _precisely_ what's happening that you think that's wrong. > Python 2.5 (r25:51908, Mar 1 2007, 10:09:05) > [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> from socket import * >>>> from select import select >>>> s=socket(AF_INET, SOCK_STREAM) >>>> s.bind(('',8080)) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "<string>", line 1, in bind > socket.error: (48, 'Address already in use') >>>> s.bind(('',8081)) >>>> s.listen(5) >>>> f = s.accept()[0].makefile() >>>> f.readline() > '123\r\n' >>>> select([f],[],[],1) > ([], [], []) >>>> f.readline() > '321\r\n' -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis There are no dull subjects. There are only dull writers. -- H.L. Mencken -- http://mail.python.org/mailman/listinfo/python-list