id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,branch,branch_author,launchpad_bug
3831,Twisted sometimes can't create the waker on Windows when AVG is installed and Active Surf Shield is enabled,glyph,,"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
",defect,closed,highest,,core,fixed,win32,itamar marienz thijs,branches/windows-getsockname-3831,pahan,
