python中的tcp socket客户端如何与uwsgi交谈?

时间:2017-08-23 08:26:32

标签: python sockets nginx uwsgi python-sockets

python中的 tcp套接字客户端 如何与uwsgi交谈?

我的架构是

tcp套接字客户端 - > nginx - > uwsgi

tcp套接字客户端 - > uwsgi

1 个答案:

答案 0 :(得分:1)

通过将uwsgi协议与套接字进行对话。协议描述为here in the uWSGI documentation

Python文档包含a decent tutorial regarding TCP and Unix sockets here

编辑:有关工作示例,请参阅https://github.com/akx/uwsgi-socket-example