Skip to content

Commit 305f67a

Browse files
authored
Release 3.10.0rc0 (#8545)
1 parent ed8de3a commit 305f67a

File tree

5 files changed

+65
-26
lines changed

5 files changed

+65
-26
lines changed

CHANGES.rst

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,70 @@
1010

1111
.. towncrier release notes start
1212
13+
3.10.0rc0 (2024-07-29)
14+
========================
15+
16+
Bug fixes
17+
---------
18+
19+
- Adjusted ``FileResponse`` to check file existence and access when preparing the response -- by :user:`steverep`.
20+
21+
The :py:class:`~aiohttp.web.FileResponse` class was modified to respond with
22+
403 Forbidden or 404 Not Found as appropriate. Previously, it would cause a
23+
server error if the path did not exist or could not be accessed. Checks for
24+
existence, non-regular files, and permissions were expected to be done in the
25+
route handler. For static routes, this now permits a compressed file to exist
26+
without its uncompressed variant and still be served. In addition, this
27+
changes the response status for files without read permission to 403, and for
28+
non-regular files from 404 to 403 for consistency.
29+
30+
31+
*Related issues and pull requests on GitHub:*
32+
:issue:`8182`.
33+
34+
35+
36+
37+
Removals and backward incompatible breaking changes
38+
---------------------------------------------------
39+
40+
- The shutdown logic in 3.9 waited on all tasks, which caused issues with some libraries.
41+
In 3.10 we've changed this logic to only wait on request handlers. This means that it's
42+
important for developers to correctly handle the lifecycle of background tasks using a
43+
library such as ``aiojobs``. If an application is using ``handler_cancellation=True`` then
44+
it is also a good idea to ensure that any :func:`asyncio.shield` calls are replaced with
45+
:func:`aiojobs.aiohttp.shield`.
46+
47+
Please read the updated documentation on these points:
48+
https://docs.aiohttp.org/en/stable/web_advanced.html#graceful-shutdown
49+
https://docs.aiohttp.org/en/stable/web_advanced.html#web-handler-cancellation
50+
51+
-- by :user:`Dreamsorcerer`
52+
53+
54+
*Related issues and pull requests on GitHub:*
55+
:issue:`8495`.
56+
57+
58+
59+
60+
Miscellaneous internal changes
61+
------------------------------
62+
63+
- Improve performance of filtering cookies -- by :user:`bdraco`.
64+
65+
This change is a followup to the improvements in :issue:`7583`
66+
67+
68+
*Related issues and pull requests on GitHub:*
69+
:issue:`8535`.
70+
71+
72+
73+
74+
----
75+
76+
1377
3.10.0b1 (2024-07-22)
1478
========================
1579

CHANGES/8182.bugfix.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

CHANGES/8495.breaking.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGES/8535.misc.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

aiohttp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "3.10.0b1"
1+
__version__ = "3.10.0rc0"
22

33
from typing import TYPE_CHECKING, Tuple
44

0 commit comments

Comments
 (0)