mirror of
https://github.com/python/cpython
synced 2026-09-28 01:13:17 +03:00
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.
This commit is contained in:
parent
8db8d7118e
commit
73e8637002
8 changed files with 50 additions and 16 deletions
|
|
@ -218,6 +218,12 @@ asyncio
|
|||
the Unix socket when the server is closed.
|
||||
(Contributed by Pierre Ossman in :gh:`111246`.)
|
||||
|
||||
* :meth:`asyncio.DatagramTransport.sendto` will now send zero-length
|
||||
datagrams if called with an empty bytes object. The transport flow
|
||||
control also now accounts for the datagram header when calculating
|
||||
the buffer size.
|
||||
(Contributed by Jamie Phan in :gh:`115199`.)
|
||||
|
||||
copy
|
||||
----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue