Opened 7 years ago

Last modified 7 years ago

#3748 defect new

On windows, test_udp.OldConnectedUDPTestCase.test_connectionRefused fails - socket.error: (10049, "Can't assign requested address")

Reported by: czzl Owned by: czzl
Priority: normal Milestone:
Component: core Keywords: windows
Cc: exarkun Branch:
Author: Launchpad Bug:


[ERROR]: twisted.test.test_udp.OldConnectedUDPTestCase.test_connectionRefused
Traceback (most recent call last):
  File twisted\test\, line 232, in cbStarted
    server.transport.write("toclient", (, c.port))
  File twisted\internet\, line 158, in write
    return self.socket.sendto(datagram, addr)
socket.error: (10049, "Can't assign requested address")

Here are lines 227-232 from, and the addr tuple they pass to write()

server.transport.write("e", ("", 80))          # ('', 80)

c = clientPort.getHost()
s = serverPort.getHost()
server.transport.write("toserver", (, s.port))    # ('', 2028)
server.transport.write("toclient", (, c.port))    # ('', 2027) - Fails

Change History (3)

comment:1 follow-up: Changed 7 years ago by exarkun

  • Cc exarkun added

Is it that this error only happens when the address is ('', ...)?

comment:2 in reply to: ↑ 1 Changed 7 years ago by czzl

Replying to exarkun:

Is it that this error only happens when the address is ('', ...)?


comment:3 Changed 7 years ago by czzl

Some explanation of a possibly related problem here:

WinSSHD fails to start - error 10049

Note: See TracTickets for help on using tickets.