Hotfix: Increase forum timeout to better accommodate existing system stability.
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -677,7 +677,7 @@ class LogMonitor: | @@ -677,7 +677,7 @@ class LogMonitor: | ||
| 677 | elif not any_growth and not captured_any: | 677 | elif not any_growth and not captured_any: |
| 678 | # 没有增长也没有捕获内容,增加非活跃计数 | 678 | # 没有增长也没有捕获内容,增加非活跃计数 |
| 679 | self.search_inactive_count += 1 | 679 | self.search_inactive_count += 1 |
| 680 | - if self.search_inactive_count >= 900: # 15分钟无活动才结束 | 680 | + if self.search_inactive_count >= 7200: # 超时无活动自动结束 |
| 681 | logger.info("ForumEngine: 长时间无活动,结束论坛") | 681 | logger.info("ForumEngine: 长时间无活动,结束论坛") |
| 682 | self.is_searching = False | 682 | self.is_searching = False |
| 683 | self.search_inactive_count = 0 | 683 | self.search_inactive_count = 0 |
-
Please register or login to post a comment