Skip to content

3.12.9

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Jun 16:21
· 3048 commits to master since this release
v3.12.9
d40e7bb

Bug fixes

  • Fixed IOBasePayload and TextIOPayload reading entire files into memory when streaming large files -- by :user:bdraco.

    When using file-like objects with the aiohttp client, the entire file would be read into memory if the file size was provided in the Content-Length header. This could cause out-of-memory errors when uploading large files. The payload classes now correctly read data in chunks of READ_SIZE (64KB) regardless of the total content length.

    Related issues and pull requests on GitHub:
    #11138.