Ben Darnell

Results 362 comments of Ben Darnell

Reopening this because I think it's a useful feature request. RequestHandler methods that reach into the stream could be overridden in WebSocketHandler to get the stream elsewhere.

This is why the command-line wrapper mode of autoreload exists. The idea is that you can prefix your command line with `python -m tornado.autoreload` and then when you have a...

> If the program does nothing special and allows the KeyboardInterrupt to propagate, an ugly traceback gets spewed to the terminal. Example: python3 -m tornado.autoreload -m wsgiref.simple_server. Isn't that what...

How much time does your profiling data say you're spending in this part of the code?

When `sendfile` can be used, it is undoubtedly better than the alternatives in several dimensions. But it cannot be used in all cases, so the non-`sendfile` version must be kept...

`set_default_headers` is awkward to use for this purpose because you'd need to use subclasses of StaticFileHandler, RedirectHandler, etc. If you care about the server header, you should really be running...

Oh, I had forgotten all about OutputTransforms. That would work, although OutputTransform is undocumented and I've never really considered them as part of the web module's public API so I...

Tornado still supports Python 3.6, so we can't require `sock_recv_into` or `sock_sendall` (which were added in Python 3.7) yet. But we could use them with suitable fallbacks (and 3.6 reaches...

Not really - the last major changes to IOStream were made by dask folks IIRC. Ultimately, if we move all of IOStream to asyncio-native interfaces, most of the current code...

Thanks for your contribution! Can you add a simple test case for this functionality to `web_test.py`?