summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/transports.py
diff options
context:
space:
mode:
authorJamie Phan <jamie@ordinarylab.dev>2024-02-17 02:38:07 (GMT)
committerGitHub <noreply@github.com>2024-02-17 02:38:07 (GMT)
commit73e8637002639e565938d3f205bf46e7f1dbd6a8 (patch)
tree4c1b1f816c5d5dd9817e63bfd80fa2ea2f2688bc /Lib/asyncio/transports.py
parent8db8d7118e1ef22bc7cdc3d8b657bc10c22c2fd6 (diff)
downloadcpython-73e8637002639e565938d3f205bf46e7f1dbd6a8.zip
cpython-73e8637002639e565938d3f205bf46e7f1dbd6a8.tar.gz
cpython-73e8637002639e565938d3f205bf46e7f1dbd6a8.tar.bz2
gh-113812: Allow DatagramTransport.sendto to send empty data (#115199)
Also include the UDP packet header sizes (8 bytes per packet) in the buffer size reported to the flow control subsystem.
Diffstat (limited to 'Lib/asyncio/transports.py')
-rw-r--r--Lib/asyncio/transports.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
index 30fd41d..34c7ad4 100644
--- a/Lib/asyncio/transports.py
+++ b/Lib/asyncio/transports.py
@@ -181,6 +181,8 @@ class DatagramTransport(BaseTransport):
to be sent out asynchronously.
addr is target socket address.
If addr is None use target address pointed on transport creation.
+ If data is an empty bytes object a zero-length datagram will be
+ sent.
"""
raise NotImplementedError