Skip to content

aiohttp 2.x closing client request data stream #1907

@thehesiod

Description

@thehesiod

In previous versions of aiohttp, if you passed a stream as the data parameter to an aiohttp request, it would not close the stream after the request, now it is closing it because it's wrapping it in a Payload, and later the write method closes it.

I believe aiohttp should not be closing the stream sent to it. This new behavior caused this issue with aiobotocore: aio-libs/aiobotocore#221 resulting in retries failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions