X Tutup
The Wayback Machine - https://web.archive.org/web/20240110155323/https://github.com/python/cpython/issues/113812
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncio DatagramTransport.sendto does not send multicast UDP packets #113812

Open
joudinet opened this issue Jan 8, 2024 · 1 comment
Open

asyncio DatagramTransport.sendto does not send multicast UDP packets #113812

joudinet opened this issue Jan 8, 2024 · 1 comment
Labels
topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@joudinet
Copy link

joudinet commented Jan 8, 2024

Bug report

Bug description:

Trying to send multicast UDP packets with DatagramTransport.sendto, I notice no error on the python program but no packet is sent (I've checked with tcpdump). Modifying the call to use the underlying socket fixes the issue but I get a warning that I should not use this socket directly.
Is this a known issue?
How should I use asyncio to properly send UDP multicast packets?

CPython versions tested on:

3.10

Operating systems tested on:

Linux

@joudinet joudinet added the type-bug An unexpected behavior, bug, or error label Jan 8, 2024
@gvanrossum
Copy link
Member

@joudinet This is not enough information for us to help you. There could be a bug in your program. I don't know much about UDP multicast, and there doesn't seem to be any special provision for it in asyncio. (Does it work by using a specific IP address? Maybe the socket needs to have some flag applied to enable multicast.)

Can you narrow the problem down to a program that's small enough to paste into a comment here and simple enough for someone to try running locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-asyncio type-bug An unexpected behavior, bug, or error
Projects
Status: Todo
Development

No branches or pull requests

3 participants
X Tutup