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
RequestHandler.finish() future not resolving #2448
Comments
I give a PR to solve this problem in #2449. |
@garenchan Thanks! |
fix issue #2448: RequestHandler.finish() future not resolving
Fixed by #2449 |
@garenchan This bug hasn't been completely fixed in #2449
The fix on |
@cramosc, Thank you very much! You are right and I left out the changes to the other branch. |
The PR tornadoweb#2449 was incomplete, it omited consideration of another branch of the 'flush' method. In short, the future returned by 'RequestHandler.finish()' may also be the return value of 'HTTP1Connection.write()'. So we should make the same change to 'HTTP1Connection.write()'. Fix tornadoweb#2448.
The PR tornadoweb#2449 was incomplete, it omited consideration of another branch of the 'flush' method. In short, the future returned by 'RequestHandler.finish()' may also be the return value of 'HTTP1Connection.write()'. So we should make the same change to 'HTTP1Connection.write()'. Fix tornadoweb#2448.
The PR tornadoweb#2449 was incomplete, it omited consideration of another branch of the 'flush' method. In short, the future returned by 'RequestHandler.finish()' may also be the return value of 'HTTP1Connection.write()'. So we should make the same change to 'HTTP1Connection.write()'. Fix tornadoweb#2448.
Just tried Tornado 5.1 for the first time and am wondering if I'm doing something wrong when waiting for the future of the
finish
method:It seems like the future is never resolved.
after
is not printed and interrupting the application outputs:Python 3.6, Ubuntu
The text was updated successfully, but these errors were encountered: