On FreeBSD 4.3, in order for ThreadedAppServer.py to be restarted
quickly without failing to bind to the main socket, I have to send a
linefeed to stdout after line 240 "rh=self.requestQueue.get()" or before
line 483 "conn.shutdown(1)".  

"os.stdout.flush() doesn't solve the problem.
"print" or "os.stdout.write('\n')" both work so long as a linefeed is
sent.

Somehow this wierd bug is caused by some interaction between Queue.get,
socket.shutdown and stdout.  Anyone have any ideas?

-Jeff

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to