[英]How to set connection-timeout in django channel?
我通过修改达芙妮的代码并重新安装它来解决这个问题。
从 github 下载 daphne 源代码
根据您的需要更改server.py
中的ping_interval,ping_timeout
。默认为 20,30(以秒为单位)
使用pip install -e /path/to/daphne/(where setup.py is located)
安装 daphne 就是这样!
`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.