Skip to content
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

Using Tornado server for aiohttp app #2987

Closed
wilberh opened this issue Feb 4, 2021 · 1 comment
Closed

Using Tornado server for aiohttp app #2987

wilberh opened this issue Feb 4, 2021 · 1 comment

Comments

@wilberh
Copy link

wilberh commented Feb 4, 2021

Is there a Tornado class intended to let an aiohttp app run on the Tornado HTTP server and I/O loop?
I searched the docs but couldn't find anything there.

@bdarnell
Copy link
Member

bdarnell commented Feb 4, 2021

Tornado just uses the asyncio event loop, so you could run an aiohttp server on one port and a Tornado http server on a second port, both using the same asyncio event loop (and then you could combine them on one port for external visibility via an external reverse proxy). There is not currently any way that I'm aware of to combine aiohttp and Tornado apps on one port. The most likely way this would be done is with ASGI, which is tracked in #2666.

@bdarnell bdarnell closed this as completed Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants