This is really strange but it seems that a single print statement in
ThreadedAppServer.py that I was using to debug is what fixed the
problem. Maybe it's flushing out stdout or something? Anyone know
what's going on?
Around line 483 I added the print statement which fixed the restart bug
somehow.
try:
print "conn close"
conn.shutdown(1)
conn.close()
except:
pass
Around line 77 I moved the definition of self.threadCount and
threadUseCounter above the exception handler for the mainsocket bind
because it calls shutdown which references self.threadCount...
self.threadCount=0
self.threadUseCounter=[]
self.mainsocket = socket.socket(socket.AF_INET,
socket.SOCK_STREAM)
Thanks to Geoff for suggesting I put a print statement there!!! :)
Regards,
Jeff
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel