码迷,mamicode.com
首页 > 其他好文 > 详细

SOCKET_CONNECT_TIMEOUT is the timeout for the connection to be established and SOCKET_TIMEOUT

时间:2019-06-12 19:31:35      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:highlight   master   blob   cache   time   set   ati   ons   write   

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

标签:highlight   master   blob   cache   time   set   ati   ons   write   

原文地址:https://www.cnblogs.com/yuanjiangw/p/11011502.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!