SOCKET_CONNECT_TIMEOUT is the timeout for the connection to be established and SOCKET_TIMEOUT
Posted yuanjiangw
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SOCKET_CONNECT_TIMEOUT is the timeout for the connection to be established and SOCKET_TIMEOUT相关的知识,希望对你有一定的参考价值。
https://github.com/niwinz/django-redis/blob/master/doc/content.adoc#32-socket-timeout
3.2. Socket timeout
Socket timeout can be set using SOCKET_TIMEOUT
and SOCKET_CONNECT_TIMEOUT
options:
CACHES =
"default":
# ...
"OPTIONS":
"SOCKET_CONNECT_TIMEOUT": 5, # in seconds
"SOCKET_TIMEOUT": 5, # in seconds
SOCKET_CONNECT_TIMEOUT
is the timeout for the connection to be established and SOCKET_TIMEOUT
is the timeout for read and write operations after the connection is established.
以上是关于SOCKET_CONNECT_TIMEOUT is the timeout for the connection to be established and SOCKET_TIMEOUT的主要内容,如果未能解决你的问题,请参考以下文章