From 491106e65a96910f5a652594cc9aa5eb8457e311 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 8 Aug 2024 12:24:04 -0500 Subject: [PATCH] Release 3.10.2 (#8655) --- CHANGES.rst | 106 ++++++++++++++++++++++++++++++++++++++ CHANGES/8551.contrib.rst | 1 - CHANGES/8565.bugfix.rst | 1 - CHANGES/8597.bugfix.rst | 1 - CHANGES/8608.misc.rst | 3 -- CHANGES/8611.bugfix.rst | 1 - CHANGES/8632.bugfix.rst | 1 - CHANGES/8634.misc.rst | 1 - CHANGES/8636.breaking.rst | 1 - CHANGES/8641.bugfix.rst | 3 -- CHANGES/8652.bugfix.rst | 1 - aiohttp/__init__.py | 2 +- 12 files changed, 107 insertions(+), 15 deletions(-) delete mode 100644 CHANGES/8551.contrib.rst delete mode 100644 CHANGES/8565.bugfix.rst delete mode 100644 CHANGES/8597.bugfix.rst delete mode 100644 CHANGES/8608.misc.rst delete mode 100644 CHANGES/8611.bugfix.rst delete mode 100644 CHANGES/8632.bugfix.rst delete mode 100644 CHANGES/8634.misc.rst delete mode 100644 CHANGES/8636.breaking.rst delete mode 100644 CHANGES/8641.bugfix.rst delete mode 100644 CHANGES/8652.bugfix.rst diff --git a/CHANGES.rst b/CHANGES.rst index b1331a7fe9f..0150c95494c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,112 @@ .. towncrier release notes start +3.10.2 (2024-08-08) +=================== + +Bug fixes +--------- + +- Fixed server checks for circular symbolic links to be compatible with Python 3.13 -- by :user:`steverep`. + + + *Related issues and pull requests on GitHub:* + :issue:`8565`. + + + +- Fixed request body not being read when ignoring an Upgrade request -- by :user:`Dreamsorcerer`. + + + *Related issues and pull requests on GitHub:* + :issue:`8597`. + + + +- Fixed an edge case where shutdown would wait for timeout when the handler was already completed -- by :user:`Dreamsorcerer`. + + + *Related issues and pull requests on GitHub:* + :issue:`8611`. + + + +- Fixed connecting to ``npipe://``, ``tcp://``, and ``unix://`` urls -- by :user:`bdraco`. + + + *Related issues and pull requests on GitHub:* + :issue:`8632`. + + + +- Fixed WebSocket ping tasks being prematurely garbage collected -- by :user:`bdraco`. + + There was a small risk that WebSocket ping tasks would be prematurely garbage collected because the event loop only holds a weak reference to the task. The garbage collection risk has been fixed by holding a strong reference to the task. Additionally, the task is now scheduled eagerly with Python 3.12+ to increase the chance it can be completed immediately and avoid having to hold any references to the task. + + + *Related issues and pull requests on GitHub:* + :issue:`8641`. + + + +- Fixed incorrectly following symlinks for compressed file variants -- by :user:`steverep`. + + + *Related issues and pull requests on GitHub:* + :issue:`8652`. + + + + +Removals and backward incompatible breaking changes +--------------------------------------------------- + +- Removed ``Request.wait_for_disconnection()``, which was mistakenly added briefly in 3.10.0 -- by :user:`Dreamsorcerer`. + + + *Related issues and pull requests on GitHub:* + :issue:`8636`. + + + + +Contributor-facing changes +-------------------------- + +- Fixed monkey patches for ``Path.stat()`` and ``Path.is_dir()`` for Python 3.13 compatibility -- by :user:`steverep`. + + + *Related issues and pull requests on GitHub:* + :issue:`8551`. + + + + +Miscellaneous internal changes +------------------------------ + +- Improved WebSocket performance when messages are sent or received frequently -- by :user:`bdraco`. + + The WebSocket heartbeat scheduling algorithm was improved to reduce the ``asyncio`` scheduling overhead by decreasing the number of ``asyncio.TimerHandle`` creations and cancellations. + + + *Related issues and pull requests on GitHub:* + :issue:`8608`. + + + +- Minor improvements to various type annotations -- by :user:`Dreamsorcerer`. + + + *Related issues and pull requests on GitHub:* + :issue:`8634`. + + + + +---- + + 3.10.1 (2024-08-03) ======================== diff --git a/CHANGES/8551.contrib.rst b/CHANGES/8551.contrib.rst deleted file mode 100644 index 3505b483ca8..00000000000 --- a/CHANGES/8551.contrib.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed monkey patches for ``Path.stat()`` and ``Path.is_dir()`` for python 3.13 compatibility -- by :user:`steverep`. diff --git a/CHANGES/8565.bugfix.rst b/CHANGES/8565.bugfix.rst deleted file mode 100644 index 35e7c4dc71a..00000000000 --- a/CHANGES/8565.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed server checks for circular symbolic links to be compatible with Python 3.13 -- by :user:`steverep`. diff --git a/CHANGES/8597.bugfix.rst b/CHANGES/8597.bugfix.rst deleted file mode 100644 index 27186bb52d1..00000000000 --- a/CHANGES/8597.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed request body not being read when ignoring an Upgrade request -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/8608.misc.rst b/CHANGES/8608.misc.rst deleted file mode 100644 index 76e845bf997..00000000000 --- a/CHANGES/8608.misc.rst +++ /dev/null @@ -1,3 +0,0 @@ -Improved websocket performance when messages are sent or received frequently -- by :user:`bdraco`. - -The WebSocket heartbeat scheduling algorithm was improved to reduce the ``asyncio`` scheduling overhead by decreasing the number of ``asyncio.TimerHandle`` creations and cancellations. diff --git a/CHANGES/8611.bugfix.rst b/CHANGES/8611.bugfix.rst deleted file mode 100644 index 2cd795cc14e..00000000000 --- a/CHANGES/8611.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed an edge case where shutdown would wait for timeout when handler was already completed -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/8632.bugfix.rst b/CHANGES/8632.bugfix.rst deleted file mode 100644 index c6da81d7ab3..00000000000 --- a/CHANGES/8632.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed connecting to ``npipe://``, ``tcp://``, and ``unix://`` urls -- by :user:`bdraco`. diff --git a/CHANGES/8634.misc.rst b/CHANGES/8634.misc.rst deleted file mode 100644 index cf4c68d5119..00000000000 --- a/CHANGES/8634.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Minor improvements to various type annotations -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/8636.breaking.rst b/CHANGES/8636.breaking.rst deleted file mode 100644 index ae3d599bf7a..00000000000 --- a/CHANGES/8636.breaking.rst +++ /dev/null @@ -1 +0,0 @@ -Removed ``Request.wait_for_disconnection()`` which was mistakenly added briefly in 3.10.0 -- by :user:`Dreamsorcerer`. diff --git a/CHANGES/8641.bugfix.rst b/CHANGES/8641.bugfix.rst deleted file mode 100644 index 9c85ac04419..00000000000 --- a/CHANGES/8641.bugfix.rst +++ /dev/null @@ -1,3 +0,0 @@ -Fixed WebSocket ping tasks being prematurely garbage collected -- by :user:`bdraco`. - -There was a small risk that WebSocket ping tasks would be prematurely garbage collected because the event loop only holds a weak reference to the task. The garbage collection risk has been fixed by holding a strong reference to the task. Additionally, the task is now scheduled eagerly with Python 3.12+ to increase the chance it can be completed immediately and avoid having to hold any references to the task. diff --git a/CHANGES/8652.bugfix.rst b/CHANGES/8652.bugfix.rst deleted file mode 100644 index 3a1003e50ad..00000000000 --- a/CHANGES/8652.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fixed incorrectly following symlinks for compressed file variants -- by :user:`steverep`. diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index 9ec07dbe449..f050229f008 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.10.1" +__version__ = "3.10.2" from typing import TYPE_CHECKING, Tuple