Browse Source

hypercorn_config.toml
配置文件修改

罗俊辉 1 năm trước cách đây
mục cha
commit
54cb9ed063
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      hypercorn_config.toml

+ 3 - 1
hypercorn_config.toml

@@ -1,3 +1,5 @@
 reload = true
 bind = "0.0.0.0:8111"
-workers = 2
+workers = 2
+keep_alive_timeout = 60  # 保持连接的最大秒数,根据需要调整
+graceful_timeout = 30    # 重启或停止之前等待当前工作完成的时间