Using the standard SocketServer.py hangs the CPU in a busy wait. The SocketServer.py normally does a : self.wfile = self.connection.makefile( 'wb', 0 ) # unbuffered IO this courses the CPU to hang in its self.wfile.write() ( socket write ) ... Fix: Doing : self.wfile = self.connection.makefile( 'wb', -1) # defaultbuffered IO works just great as far as I can see. How-To-Repeat: Run the SimpleHTTPServer.py and put some load on it. I simulated 50 concurrent users giving a total of 5 hits/sec. Kill the calling browsers brutally so that when the web-server writes to the socket on which the client emitted its call, the client is not there anymore. This will course the web-server to hang in its self.wfile.write()...
Responsible Changed From-To: gnats-admin->freebsd-ports Misfiled PR.
Responsible Changed From-To: freebsd-ports->tg Over to port's maintainer.
State Changed From-To: open->feedback Does this problem still exist with the latest version of the port?
State Changed From-To: feedback->closed Originator says that he could not make it work in FreeBSD and isn't using it anymore. Since this is a very old PR and several newer versions of Python have come and gone, we'll cross our fingers that the problem has been resolved and close this PR.