浏览代码

Update socketio timeout (#935)

Nikhil Rao 2 年之前
父节点
当前提交
bad2363506
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pynecone/constants.py

+ 1 - 1
pynecone/constants.py

@@ -81,7 +81,7 @@ RUN_BACKEND_PROD = f"gunicorn --worker-class uvicorn.workers.UvicornH11Worker --
 RUN_BACKEND_PROD_WINDOWS = f"uvicorn --timeout-keep-alive {TIMEOUT}".split()
 # Socket.IO web server
 PING_INTERVAL = 25
-PING_TIMEOUT = 5
+PING_TIMEOUT = 120
 
 # Compiler variables.
 # The extension for compiled Javascript files.