Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
arthurdarcet opened this issue Mar 28, 2017 · 3 comments
Labels

Comments

@arthurdarcet
Copy link
Contributor

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)

@fafhrd91
Copy link
Member

could you test this

@arthurdarcet
Copy link
Contributor Author

yep perfect thanks

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants