Ticket #3831 defect closed fixed
Twisted sometimes can't create the waker on Windows when AVG is installed and Active Surf Shield is enabled
| Reported by: | glyph | Owned by: | |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | core | Keywords: | win32 |
| Cc: | itamar, marienz, thijs | Branch: | branches/windows-getsockname-3831 |
| Author: | pahan | Launchpad Bug: |
Description
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:
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

