-
-
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
Serving static files with add_static() breaks event loop on windows #1401
Labels
Comments
Well, sendfile should use |
After small print-debugging session I found the issue
there should be
Could you please include the fix in next release. |
Excellent catch! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
Serving big static file makes impossible to process new requests at this time. Event loop does not pass execution to other coroutines.
If client stops to receive file in the middle of transfer then server becomes broken - it cannot receive/process new requests.
Expected behaviour
Other requests can be processed while file is served.
Actual behaviour
Server hangs for some time or becomes broken forever.
Steps to reproduce
Server:
Client:
Your environment
aiohttp (1.1.3)
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
Win10
The text was updated successfully, but these errors were encountered: