- ZopeHTTPServer winsock errors on Win32?
When I run Zope using ZopeHTTPServer on my Win NT4 SP3 Box (both multi and single threaded) I get lots of winsock error-exceptions like those below, when I open the management screen with any browser and click the reload button very heavily (or synchronously on two machines even not so heavily). Is this normal, due to interrupted requests? I've no idea about socket communication (my knowledge start on the http text stream level) so this could just be an upset naive "Oh my God, this Red Light started flashing" post. stefan ---------------------------------------- Exception happened during processing of request from ('194.163.81.32', 2017) Traceback (innermost last): File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 419, in handle_request self.process_request(request, client_address) File "D:\Programme\Zope\Koelnzope/lib/python1.5\SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "D:\Programme\Zope\Koelnzope/lib/python1.5\SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "D:\Programme\Zope\Koelnzope/lib/python1.5\SocketServer.py", line 362, in __init__ self.handle() File "D:\Programme\Zope\Koelnzope/lib/python1.5\BaseHTTPServer.py", line 228, in handle self.raw_requestline = self.rfile.readline() File "D:\Programme\Zope\Koelnzope\lib\python1.5\plat-win\socket.py", line 117, in readline new = self._sock.recv(self._rbufsize) error: (10054, 'winsock error') ---------------------------------------- FRANKE1 - - [21/Jan/1999 19:44:53] "GET /manage HTTP/1.1" 200 - ---------------------------------------- Exception happened during processing of request from ('194.163.81.32', 2018) Traceback (innermost last): File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 419, in handle_request self.process_request(request, client_address) File "D:\Programme\Zope\Koelnzope/lib/python1.5\SocketServer.py", line 239, in process_request self.finish_request(request, client_address) File "D:\Programme\Zope\Koelnzope/lib/python1.5\SocketServer.py", line 243, in finish_request self.RequestHandlerClass(request, client_address, self) File "D:\Programme\Zope\Koelnzope/lib/python1.5\SocketServer.py", line 362, in __init__ self.handle() File "D:\Programme\Zope\Koelnzope/lib/python1.5\BaseHTTPServer.py", line 258, in handle method() File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 328, in do_GET self.publish_module() File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 342, in publish_module publish_module( File "D:\Programme\Zope\Koelnzope\lib\python\ZPublisher\Publish.py", line 895, in publish_module if response: stdout.write(response) File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 277, in write self.handler.send_response(string.atoi(code),message) File "D:\Programme\Zope\Koelnzope/lib/python1.5\BaseHTTPServer.py", line 304, in send_response self.wfile.write("%s %s %s\r\n" % File "D:\Programme\Zope\Koelnzope\lib\python1.5\plat-win\socket.py", line 91, in write self.flush() File "D:\Programme\Zope\Koelnzope\lib\python1.5\plat-win\socket.py", line 78, in flush self._sock.send(self._wbuf) error: (10054, 'winsock error') ----------------------------------------
On 21 Jan 99, at 19:51, Stefan Franke wrote:
When I run Zope using ZopeHTTPServer on my Win NT4 SP3 Box (both multi and single threaded) I get lots of winsock error-exceptions like those below, when I open the management screen with any browser and click the reload button very heavily (or synchronously on two machines even not so heavily). Is this normal, due to interrupted requests? I've no idea about socket communication (my knowledge start on the http text stream level) so this could just be an upset naive "Oh my God, this Red Light started flashing" post.
error: (10054, 'winsock error')
This error is "connection reset by peer". Those nasty web clients are doing an abortive close on their sockets, so the connection is "aborted" rather than gracefully closed. This is going to happen *a lot*, (anytime someone presses STOP on their browser). I think it would be good if ZopeHTTPServer would *not* generate a traceback for this error, just ignore it and treat is as "connection closed". Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937 We must come down from our heights, and leave our straight paths, for the byways and low places of life, if we would learn truths by strong contrasts; and in hovels, in forecastles, and among our own outcasts in foreign lands, see what has been wrought upon our fellow-creatures by accident, hardship, or vice. - Richard Henry Dana, Jr. 1836
participants (2)
-
Brad Clements -
Stefan Franke