Twisted sometimes can't create the waker on Windows

[email protected]
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from glyph <[email protected]>:

Sometimes, rarely, on certain Windows installations, users see this error:

{{{
Traceback (most recent call last):

  File "whatever.py", line 1, in <module>

    from twisted.internet import reactor

  File "twisted\internet\reactor.py", line 38, in <module>

    selectreactor.install()

  File "twisted\internet\selectreactor.py", line 200, in install

    reactor = SelectReactor()

  File "twisted\internet\selectreactor.py", line 72, in __init__

    posixbase.PosixReactorBase.__init__(self)

  File "twisted\internet\posixbase.py", line 170, in __init__

    ReactorBase.__init__(self)

  File "twisted\internet\base.py", line 446, in __init__

    self._initThreads()

  File "twisted\internet\base.py", line 869, in _initThreads

    self.installWaker()

  File "twisted\internet\posixbase.py", line 206, in installWaker

    self.waker = _Waker(self)

  File "twisted\internet\posixbase.py", line 77, in __init__

    client.connect(server.getsockname())

  File "<string>", line 1, in connect

socket.error: [Errno 10049] The requested address is not valid in its context
}}}

This occurs because `socket.getsockname()` spuriously returns `"0.0.0.0"` for the host part of the address, despite the fact that it was explicitly bound to `"127.0.0.1"`.

Possibly related tickets:

  * #3748
  * #1369


----------
Type     : defect
Component: core
Keywords : win32
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/3831
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.