Parcourir la source

Update socketio timeout (#935)

Nikhil Rao il y a 2 ans
Parent
commit
bad2363506
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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()
 RUN_BACKEND_PROD_WINDOWS = f"uvicorn --timeout-keep-alive {TIMEOUT}".split()
 # Socket.IO web server
 # Socket.IO web server
 PING_INTERVAL = 25
 PING_INTERVAL = 25
-PING_TIMEOUT = 5
+PING_TIMEOUT = 120
 
 
 # Compiler variables.
 # Compiler variables.
 # The extension for compiled Javascript files.
 # The extension for compiled Javascript files.