Is it possible to embed an asyncio tcp server as management? #2401
Unanswered
Zhaoxun
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to embed a management tcp service alone with the standard FastAPI service, on a different port and serves localhost only. Let us call it
management.py
, which will be imported bymain.py
. Here is a little modification of theTCP echo server using streamsmanagement.py
I tried to run the uvicorn on a different tcp port:
uvicorn main:app --host '0.0.0.0' --port 8000
It loads as if no error. But
ss -tlnp
shows me that uvicorn only works on0.0.0.0:8000
without127.0.0.1:9000
Why is that?
Beta Was this translation helpful? Give feedback.
All reactions