-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
RuntimeError: Cannot pause_reading() when closing, triggered via FlowControlStreamReader.feed_data #1211
Comments
the same error
with this code:
environment:
|
Confirm this bug on Ubuntu 16.04 with Python 3.6.0b4 and aiohttp 1.2.0
|
#1551 should solve this problem. could anyone test it? |
@fafhrd91 I've checked your patch on my staging environment and seems that it fixed the problem! Thanks! |
@fafhrd91 Yep, looks like error is gone |
fixed by #1551 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
When trying to read the response to a get request from an https endpoint, I get a
RuntimeError: Cannot pause_reading() when closing
exception.Expected behaviour
I expect it to read the response successfully.
Actual behaviour
Steps to reproduce
The relevant code is something like this, though I've only been able to reproduce it in an application which creates many sessions simultaneously:
Your environment
I have observed this bug with aiohttp versions 1.0.1 and 1.0.2 (have not tried any older versions), on Gentoo Linux with Python 3.5.2. I've only been able to reproduce it in an application which creates many sessions simultaneously. Each session has a single request directed at an https endpoint on port 5080 of Linux host running ganeti (http://docs.ganeti.org/ganeti/2.5/man/ganeti-rapi.html).
I was able to workaround the problem by overriding the ClientSession response_class parameter as follows:
The text was updated successfully, but these errors were encountered: