Skip to content

Commit

Permalink
Release 3.10.0rc0 (#8545)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jul 29, 2024
1 parent ed8de3a commit 305f67a
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 26 deletions.
64 changes: 64 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,70 @@

.. towncrier release notes start
3.10.0rc0 (2024-07-29)
========================

Bug fixes
---------

- Adjusted ``FileResponse`` to check file existence and access when preparing the response -- by :user:`steverep`.

The :py:class:`~aiohttp.web.FileResponse` class was modified to respond with
403 Forbidden or 404 Not Found as appropriate. Previously, it would cause a
server error if the path did not exist or could not be accessed. Checks for
existence, non-regular files, and permissions were expected to be done in the
route handler. For static routes, this now permits a compressed file to exist
without its uncompressed variant and still be served. In addition, this
changes the response status for files without read permission to 403, and for
non-regular files from 404 to 403 for consistency.


*Related issues and pull requests on GitHub:*
:issue:`8182`.




Removals and backward incompatible breaking changes
---------------------------------------------------

- The shutdown logic in 3.9 waited on all tasks, which caused issues with some libraries.
In 3.10 we've changed this logic to only wait on request handlers. This means that it's
important for developers to correctly handle the lifecycle of background tasks using a
library such as ``aiojobs``. If an application is using ``handler_cancellation=True`` then
it is also a good idea to ensure that any :func:`asyncio.shield` calls are replaced with
:func:`aiojobs.aiohttp.shield`.

Please read the updated documentation on these points:
https://docs.aiohttp.org/en/stable/web_advanced.html#graceful-shutdown
https://docs.aiohttp.org/en/stable/web_advanced.html#web-handler-cancellation

-- by :user:`Dreamsorcerer`


*Related issues and pull requests on GitHub:*
:issue:`8495`.




Miscellaneous internal changes
------------------------------

- Improve performance of filtering cookies -- by :user:`bdraco`.

This change is a followup to the improvements in :issue:`7583`


*Related issues and pull requests on GitHub:*
:issue:`8535`.




----


3.10.0b1 (2024-07-22)
========================

Expand Down
10 changes: 0 additions & 10 deletions CHANGES/8182.bugfix.rst

This file was deleted.

12 changes: 0 additions & 12 deletions CHANGES/8495.breaking.rst

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGES/8535.misc.rst

This file was deleted.

2 changes: 1 addition & 1 deletion aiohttp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.10.0b1"
__version__ = "3.10.0rc0"

from typing import TYPE_CHECKING, Tuple

Expand Down

0 comments on commit 305f67a

Please sign in to comment.