da03 commited on
Commit
4c8934b
·
1 Parent(s): 5d52328
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -145,8 +145,8 @@ app.mount("/static", StaticFiles(directory="static"), name="static")
145
  connection_counter = 0
146
 
147
  # Connection timeout settings
148
- CONNECTION_TIMEOUT = 20 # 20 seconds timeout
149
- WARNING_TIME = 10 # 10 seconds warning before timeout
150
 
151
  # Create a thread pool executor
152
  thread_executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
 
145
  connection_counter = 0
146
 
147
  # Connection timeout settings
148
+ CONNECTION_TIMEOUT = 20 + 1 # 20 seconds timeout plus 1 second grace period
149
+ WARNING_TIME = 10 + 1 # 10 seconds warning before timeout plus 1 second grace period
150
 
151
  # Create a thread pool executor
152
  thread_executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)