[New-bugs-announce] [issue11130] SocketServer: server_address is... a socket

ProgVal report at bugs.python.org
Sat Feb 5 17:57:25 CET 2011


New submission from ProgVal <progval at gmail.com>:

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 <report at bugs.python.org>
<http://bugs.python.org/issue11130>
_______________________________________


More information about the New-bugs-announce mailing list