Pierce Lopez

Results 269 comments of Pierce Lopez

You can use `IOLoop.current().spawn_callback()` from `on_finish()` to trigger an async function. `on_finish()` can't affect the request/response (it's too late), so it's not really necessary for `on_finish()` to be able to...

I think the problem is caused by the response being a 302 redirect, with `Transfer-Encoding: chunked` header, and no body ... tornado expect it to have a body (with at...

I think you're right that the `IOStream` will not be closed immediately if the `tcp_client.connect()` times-out. I think that might actually not be possible, because the future has not yet...

I've seen this in the wild too ... I think the `open()` and `on_close()` can be triggered, roughly, in the same ioloop iteration, and the order they run during the...

use `@stream_request_body`: https://www.tornadoweb.org/en/stable/web.html#tornado.web.stream_request_body

This issue description is a bit out of date. According to http://www.tornadoweb.org/en/stable/httpserver.html#http-server > By default, when parsing the X-Forwarded-For header, Tornado will select the last (i.e., the closest) address on...

Yeah, I'm not confident about this solution. I left the job and codebase where I observed the problem over a month ago, so I'm not much help with testing and...

You can override `set_default_headers()` in the RequestHandler sub-classes, and set or clear the Server response header there. This would have to be done in the Jupyter code base. You could...

You can find the original reasoning for this design here: https://github.com/tornadoweb/tornado/pull/1909 As noted, you can `create_task()` (or `IOLoop.spawn_callback()`) from your `on_message()` handler, if message processing might take a while, and...