mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
[3.14] gh-119711: describe create_datagram_endpoint's behavior in asyncio when local_addr is None (GH-136913) (#137164)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
This commit is contained in:
parent
50461821fb
commit
f180fb956b
1 changed files with 6 additions and 0 deletions
|
|
@ -611,6 +611,12 @@ Opening network connections
|
|||
to bind the socket locally. The *local_host* and *local_port*
|
||||
are looked up using :meth:`getaddrinfo`.
|
||||
|
||||
.. note::
|
||||
|
||||
On Windows, when using the proactor event loop with ``local_addr=None``,
|
||||
an :exc:`OSError` with :attr:`!errno.WSAEINVAL` will be raised
|
||||
when running it.
|
||||
|
||||
* *remote_addr*, if given, is a ``(remote_host, remote_port)`` tuple used
|
||||
to connect the socket to a remote address. The *remote_host* and
|
||||
*remote_port* are looked up using :meth:`getaddrinfo`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue