Skip to content

Releases: aio-libs/aiohttp

3.11.11

18 Dec 21:16
v3.11.11
8aaaba3
Compare
Choose a tag to compare

Bug fixes

  • Updated :py:meth:~aiohttp.ClientSession.request to reuse the quote_cookie setting from ClientSession._cookie_jar when processing cookies parameter.
    -- by :user:Cycloctane.

    Related issues and pull requests on GitHub:
    #10093.

  • Fixed type of SSLContext for some static type checkers (e.g. pyright).

    Related issues and pull requests on GitHub:
    #10099.

  • Updated :meth:aiohttp.web.StreamResponse.write annotation to also allow :class:bytearray and :class:memoryview as inputs -- by :user:cdce8p.

    Related issues and pull requests on GitHub:
    #10154.

  • Fixed a hang where a connection previously used for a streaming
    download could be returned to the pool in a paused state.
    -- by :user:javitonino.

    Related issues and pull requests on GitHub:
    #10169.

Features

  • Enabled ALPN on default SSL contexts. This improves compatibility with some
    proxies which don't work without this extension.
    -- by :user:Cycloctane.

    Related issues and pull requests on GitHub:
    #10156.

Miscellaneous internal changes


3.11.10

05 Dec 23:49
v3.11.10
0d7352a
Compare
Choose a tag to compare

Bug fixes

  • Fixed race condition in :class:aiohttp.web.FileResponse that could have resulted in an incorrect response if the file was replaced on the file system during prepare -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10101, #10113.

  • Replaced deprecated call to :func:mimetypes.guess_type with :func:mimetypes.guess_file_type when using Python 3.13+ -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10102.

  • Disabled zero copy writes in the StreamWriter -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10125.


3.11.9

01 Dec 23:25
v3.11.9
79561a6
Compare
Choose a tag to compare

Bug fixes

  • Fixed invalid method logging unexpected being logged at exception level on subsequent connections -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10055, #10076.

Miscellaneous internal changes

  • Improved performance of parsing headers when using the C parser -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10073.


3.11.8

27 Nov 18:49
v3.11.8
5ddf720
Compare
Choose a tag to compare

Miscellaneous internal changes

  • Improved performance of creating :class:aiohttp.ClientResponse objects when there are no cookies -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10029.

  • Improved performance of creating :class:aiohttp.ClientResponse objects -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10030.

  • Improved performances of creating objects during the HTTP request lifecycle -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10037.

  • Improved performance of constructing :class:aiohttp.web.Response with headers -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10043.

  • Improved performance of making requests when there are no auto headers to skip -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10049.

  • Downgraded logging of invalid HTTP method exceptions on the first request to debug level -- by :user:bdraco.

    HTTP requests starting with an invalid method are relatively common, especially when connected to the public internet, because browsers or other clients may try to speak SSL to a plain-text server or vice-versa. These exceptions can quickly fill the log with noise when nothing is wrong.

    Related issues and pull requests on GitHub:
    #10055.


3.11.7

21 Nov 15:41
v3.11.7
bf04a1b
Compare
Choose a tag to compare

Bug fixes

  • Fixed the HTTP client not considering the connector's force_close value when setting the Connection header -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10003.

Miscellaneous internal changes

  • Improved performance of serializing HTTP headers -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #10014.


3.11.6

19 Nov 20:08
v3.11.6
ff9602d
Compare
Choose a tag to compare

Bug fixes

  • Restored the force_close method to the ResponseHandler -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #9997.


3.11.5

19 Nov 15:52
v3.11.5
e836d3a
Compare
Choose a tag to compare

Bug fixes

  • Fixed the ANY method not appearing in :meth:~aiohttp.web.UrlDispatcher.routes -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #9899, #9987.


3.11.4

19 Nov 06:58
v3.11.4
f3d27ac
Compare
Choose a tag to compare

Bug fixes

  • Fixed StaticResource not allowing the OPTIONS method after calling set_options_route -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #9972, #9975, #9976.

Miscellaneous internal changes

  • Improved performance of creating web responses when there are no cookies -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #9895.


3.11.3

19 Nov 01:19
v3.11.3
90558c3
Compare
Choose a tag to compare

Bug fixes

  • Removed non-existing __author__ from dir(aiohttp) -- by :user:Dreamsorcerer.

    Related issues and pull requests on GitHub:
    #9918.

  • Restored the FlowControlDataQueue class -- by :user:bdraco.

    This class is no longer used internally, and will be permanently removed in the next major version.

    Related issues and pull requests on GitHub:
    #9963.

Miscellaneous internal changes

  • Improved performance of resolving resources when multiple methods are registered for the same route -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #9899.


3.11.2

14 Nov 23:29
v3.11.2
db37e91
Compare
Choose a tag to compare

Bug fixes

  • Fixed improperly closed WebSocket connections generating an unhandled exception -- by :user:bdraco.

    Related issues and pull requests on GitHub:
    #9883.