Skip to content

Sending a request with a body crashes if the server responds before the body is sent #1761

Closed
@arthurdarcet

Description

if the server handler is something like

async def handler(request):
    return web.Response(text='ok')

then session.post('…', data=b'0') will crash (trying to write to a closed transport)

I'll submit a pull request for this next week (i have a memory leak i need to track down first)

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions