python - python中的tcp套接字客户端如何与uwsgi对话?

标签 python sockets nginx uwsgi python-sockets

Python中的tcp套接字客户端如何与uwsgi对话?

我的架构是

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

tcp 套接字客户端 -> uwsgi

最佳答案

通过与套接字对话uwsgi协议(protocol)。该协议(protocol)描述为here in the uWSGI documentation .

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

编辑:参见https://github.com/akx/uwsgi-socket-example一个工作示例。

关于python - python中的tcp套接字客户端如何与uwsgi对话?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45834465/

相关文章:

.htaccess - nginX 中的 URL 重写

Python Pandas - 时间序列查找上一行的索引

python - TensorFlow:将一个模型的预测合并到新模型的训练中的最简单方法是什么?

c - 读取/接收线程安全 (MSG_PEEK)

nginx - kubernetes ingress server-alias 仅适用于一台 ingress 主机

当域名中没有www时,Nginx加载没有gunicorn

python - Pandas 意外的 set_index 行为

python - Pandas - 有条件的 groupby

c++ - 由于 recvfrom 函数阻塞程序执行导致程序卡住

node.js - 如何实现 Laravel、node.js、socket.io 和 redis 以使用数据库创建实时聊天/通知