New submission from ProgVal <[email protected]>:
Hello,
I have issues with a script I'm programming (TypeError at every client
connection), so I edited BaseServer's __init__():
def __init__(self, server_address, RequestHandlerClass):
"""Constructor. May be extended, do not override."""
if isinstance(server_address, socket._socketobject):
raise Exception()
self.server_address = server_address
self.RequestHandlerClass = RequestHandlerClass
self.__is_shut_down = threading.Event()
self.__shutdown_request = False
And it raises sometimes this traceback:
Exception happened during processing of request from ('127.0.0.1', 32810)
Traceback (most recent call last):
File "/usr/lib/python2.6/SocketServer.py", line 285, in
_handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python2.6/SocketServer.py", line 311, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python2.6/SocketServer.py", line 324, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.6/SocketServer.py", line 400, in __init__
BaseServer.__init__(self, server_address, RequestHandlerClass)
File "/usr/lib/python2.6/SocketServer.py", line 198, in __init__
raise Exception()
Best regards,
ProgVal
----------
components: Library (Lib)
messages: 127999
nosy: ProgVal
priority: normal
severity: normal
status: open
title: SocketServer: server_address is... a socket
versions: Python 2.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11130>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com