[Stackless] SimpleHTTPServer on stackless 2.5.1

Jim jimsfba at aol.com
Sat May 12 23:51:54 CEST 2007


Hi, Richard, thanks for looking into this.

Just double check, you are running the windows version of Pyhton 2.5.1 + 
stackless 2.5.1 files, right ?  I am running them on windows xp sp2.

Directory browsing alway work. Sometimes, it didn't hangs in the first 
few clicks. But after 5 - 10 click on different 200K files, it will for 
sure  stop responding to the browser in my environment.

Since your environment works fine, it makes me think this can be related 
to browser side. I took out the statement ' protocol_version = 
"HTTP/1.1" ', the problem is gone. It seems it's a keep alive issue 
between server and browser ( I tried both IE 6 and firefox 2.0).
Thanks again. - Jim

================================

By the way, The trace was what I got after hitting control-c when the 
browser waiting for web server forever. Here's another one:


Traceback (most recent call last):
   File "c:\stackless\test.py", line 56, in <module>
     stackless.run()
   File "c:\stackless\stacklesssocket.py", line 65, in ManageSockets
     asyncore.poll(0.05)
   File "C:\Python25\lib\asyncore.py", line 121, in poll
     r, w, e = select.select(r, w, e, timeout)
KeyboardInterrupt
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 2614)
Traceback (most recent call last):
   File "c:\stackless\test.py", line 45, in handle_request_tasklet
     self.process_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 241, in process_request
     self.finish_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
     self.RequestHandlerClass(request, client_address, self)
   File "C:\Python25\lib\SocketServer.py", line 522, in __init__
     self.handle()
   File "C:\Python25\lib\BaseHTTPServer.py", line 318, in handle
     self.handle_one_request()
   File "C:\Python25\lib\BaseHTTPServer.py", line 299, in handle_one_request
     self.raw_requestline = self.rfile.readline()
   File "C:\Python25\lib\socket.py", line 346, in readline
     data = self._sock.recv(self._rbufsize)
   File "c:\stackless\stacklesssocket.py", line 198, in recv
     self.readBufferString += self.recvChannel.receive()
TaskletExit
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 2615)
Traceback (most recent call last):
   File "c:\stackless\test.py", line 45, in handle_request_tasklet
     self.process_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 241, in process_request
     self.finish_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
     self.RequestHandlerClass(request, client_address, self)
   File "C:\Python25\lib\SocketServer.py", line 522, in __init__
     self.handle()
   File "C:\Python25\lib\BaseHTTPServer.py", line 318, in handle
     self.handle_one_request()
   File "C:\Python25\lib\BaseHTTPServer.py", line 299, in handle_one_request
     self.raw_requestline = self.rfile.readline()
   File "C:\Python25\lib\socket.py", line 346, in readline
     data = self._sock.recv(self._rbufsize)
   File "c:\stackless\stacklesssocket.py", line 198, in recv
     self.readBufferString += self.recvChannel.receive()
TaskletExit
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 2617)
Traceback (most recent call last):
   File "c:\stackless\test.py", line 45, in handle_request_tasklet
     self.process_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 241, in process_request
     self.finish_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
     self.RequestHandlerClass(request, client_address, self)
   File "C:\Python25\lib\SocketServer.py", line 522, in __init__
     self.handle()
   File "C:\Python25\lib\BaseHTTPServer.py", line 318, in handle
     self.handle_one_request()
   File "C:\Python25\lib\BaseHTTPServer.py", line 299, in handle_one_request
     self.raw_requestline = self.rfile.readline()
   File "C:\Python25\lib\socket.py", line 346, in readline
     data = self._sock.recv(self._rbufsize)
   File "c:\stackless\stacklesssocket.py", line 198, in recv
     self.readBufferString += self.recvChannel.receive()
TaskletExit
----------------------------------------
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 2618)
Traceback (most recent call last):
   File "c:\stackless\test.py", line 45, in handle_request_tasklet
     self.process_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 241, in process_request
     self.finish_request(request, client_address)
   File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
     self.RequestHandlerClass(request, client_address, self)
   File "C:\Python25\lib\SocketServer.py", line 522, in __init__
     self.handle()
   File "C:\Python25\lib\BaseHTTPServer.py", line 318, in handle
     self.handle_one_request()
   File "C:\Python25\lib\BaseHTTPServer.py", line 299, in handle_one_request
     self.raw_requestline = self.rfile.readline()
   File "C:\Python25\lib\socket.py", line 346, in readline
     data = self._sock.recv(self._rbufsize)
   File "c:\stackless\stacklesssocket.py", line 198, in recv
     self.readBufferString += self.recvChannel.receive()
TaskletExit
----------------------------------------


_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list