tornado
tornado copied to clipboard
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
Hi, Recently I've updated my tornado tests container to python:3.10-alpine3.15 from python:3.9.6-alpine3.14. After doing this, my tests started to fail with the error below. These are my dependencies: ``` coverage==5.3...
The old specification of HTTP defined the values of a Location header to be absolute URI's. https://datatracker.ietf.org/doc/html/rfc2616#section-14.30 > Location = "Location" ":" absoluteURI Nowadays, because there are so many broken...
Hello, My test codes are below: import traceback from tornado import httpclient def test(): client = httpclient.HTTPClient() url = "http://www.baidu.com/link?url=7rwodBCaetm-ogDMm0fCdkj-Crje0M21LIWnXbz3XxToow8VmZwXOZaEz1nBMJBKofatc2X8SlFXyNvv5D7HhWgpIB8MDi5R85IYL30OjDmW4URWPW5y4AIwkVKioJSxPPBzWJmmaO11fEEO__BLxIiiT1FcKw8asqqF7h1QupS" try: response = client.fetch(url) print(response) except: traceback.print_exc() if __name__ ==...
  Sometimes it could happen when the handler finish the task and callback the result, but the http connection would not be broken until timeout. I figure out that...
when i send a request like this:HTTPServerRequest(protocol='https', host=': localhost', method='GET', uri='/', version='HTTP/1.1', remote_ip='127.0.0.1') there is a exception as follow: ERROR:tornado.application:Uncaught exception Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/tornado/http1connection.py", line 273,...
`UIModule.render` is [typed](https://github.com/tornadoweb/tornado/blob/master/tornado/web.py#L3198) to return a string whereas `UIModule.render_string` is [typed](https://github.com/tornadoweb/tornado/blob/master/tornado/web.py#L3240) to return `bytes`. The naming of `render_string` is probably a holdover from the Python 2 days and does in...
Hi, guys My code works fine in FastAPI, but got errors below in Tornado ! ERROR:asyncio:Task was destroyed but it is pending! source_traceback: Object created at (most recent call last):...
Hi, Any particular reason why methods calls to _handle_request_exception(e) or on_finish() are not being awaited ? https://github.com/tornadoweb/tornado/blob/1db5b45918da8303d2c6958ee03dbbd5dc2709e9/tornado/web.py#L1709 In my implementation I'm overwriting these methods, but I need async support on...
[OWASP recommends](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#login-csrf) to generate a new CSRF token after authentication: > Remember that pre-sessions cannot be transitioned to real sessions once the user is authenticated - the session should be...
I'm unable to stop a Tornado service on FreeBSD when using multi-cpu. When I do `service appl start`, I see five processes: * one daemon * four non-daemon threads The...