|
10 | 10 |
|
11 | 11 | .. towncrier release notes start |
12 | 12 |
|
| 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 | + |
13 | 77 | 3.10.0b1 (2024-07-22) |
14 | 78 | ======================== |
15 | 79 |
|
|
0 commit comments