Skip to content

Commit

Permalink
add tcpTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Apr 9, 2024
1 parent 709e8eb commit ca90f9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/build-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ workers:
queueSize: 64
tcpMaxBufferedPagesTotal: 65536
tcpMaxBufferedPagesPerConn: 16
tcpTimeout: 10m # (4)!
udpMaxStreams: 4096

# The path to load specific local geoip/geosite db files.
Expand All @@ -55,3 +56,4 @@ workers:
1. Set to false if you want to run OpenGFW on FORWARD chain (e.g. on a router)
2. Set to true if you want to send RST for blocked TCP connections, **local=false only**
3. Recommended to be no more than the number of CPU cores
4. How long a connection is considered dead when no data is being transferred. Dead connections are purged from TCP reassembly pools once per minute.
2 changes: 2 additions & 0 deletions docs/docs/build-run.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ workers:
queueSize: 64
tcpMaxBufferedPagesTotal: 65536
tcpMaxBufferedPagesPerConn: 16
tcpTimeout: 10m # (4)!
udpMaxStreams: 4096

# 指定的 geoip/geosite 档案路径
Expand All @@ -55,3 +56,4 @@ workers:
1. 如果想在 FORWARD 链上运行(如在路由器上),设置为 false
2. 如果想为被阻断的 TCP 连接发送 RST,设置为 true。**仅在 local=false 时有效**
3. 建议不超过 CPU 核心数
4. 一个连接多久没有数据传输后会被认为是死连接。TCP 重组的连接池会以每分钟一次的频率清理死连接

0 comments on commit ca90f9c

Please sign in to comment.