Skip to content

Commit 505e2a4

Browse files
miss-islingtonaisk
andauthored
[3.13] gh-119711: describe create_datagram_endpoint's behavior in asyncio when local_addr is None (GH-136913) (#137163)
gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when `local_addr` is `None` (GH-136913) (cherry picked from commit 1481384) Co-authored-by: AN Long <aisk@users.noreply.github.com>
1 parent c2b8a89 commit 505e2a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,12 @@ Opening network connections
595595
to bind the socket locally. The *local_host* and *local_port*
596596
are looked up using :meth:`getaddrinfo`.
597597

598+
.. note::
599+
600+
On Windows, when using the proactor event loop with ``local_addr=None``,
601+
an :exc:`OSError` with :attr:`!errno.WSAEINVAL` will be raised
602+
when running it.
603+
598604
* *remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used
599605
to connect the socket to a remote address. The *remote_host* and
600606
*remote_port* are looked up using :meth:`getaddrinfo`.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy