This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ariddell
Recipients ariddell, gvanrossum, vstinner, yselivanov
Date 2014-06-10.00:38:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402360736.4.0.184657566107.issue21701@psf.upfronthosting.co.za>
In-reply-to
Content
Creating a UDP connection through ``create_datagram_endpoint`` when specifying both remote_addr and local_addr does not work; messages are not received. If remote_addr is removed, messages are received.

Easy to reproduce:

works: python3 client_good.py & python3 sender.py 127.0.0.1 8888
blocks?: python3 client_bad.py & python3 sender.py 127.0.0.1 8888

From the PEP I gather this really is a bug, since create_datagram_endpoint is supposed to be bidirectional::

    create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, <options>). Creates an endpoint for sending and receiving datagrams (typically UDP packets). Because of the nature of datagram traffic, there are no separate calls to set up client and server side, since usually a single endpoint acts as both client and server.
History
Date User Action Args
2014-06-10 00:38:56ariddellsetrecipients: + ariddell, gvanrossum, vstinner, yselivanov
2014-06-10 00:38:56ariddellsetmessageid: <1402360736.4.0.184657566107.issue21701@psf.upfronthosting.co.za>
2014-06-10 00:38:56ariddelllinkissue21701 messages
2014-06-10 00:38:54ariddellcreate