Skip to content

UDPTransport isn't sending traffic to remote_addr when local_addr is set #45

@vodik

Description

@vodik
  • uvloop version: 0.5.2
  • python version: Python 3.5.2
  • platform: Archlinux

Using the asyncio example udp echo server with uvloop. Works perfectly without uvloop, but once uvloop is used, the remote addr isn't set on the transport. Fails to send packets to the remote machine.

Note: It works if you run the server/client on the same machine. To replicate this, try going between two machines.

Inspecting the socket of the created transport, I see <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 55216)>.

With asyncio, raddr is set (<socket.socket fd=6, family=AddressFamily.AF_INET, type=2050, proto=17, laddr=('10.200.0.9', 33074), raddr=('10.10.8.30', 9999)>).

I'd like to use this with aiosip, but I'm also seeing this problem there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions