Skip to content

Commit f391813

Browse files
authored
Merge pull request #533 from ehang-io/dev
update docs
2 parents e6b825d + 03e32ba commit f391813

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/feature.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,7 @@ LevelInformational->6 LevelDebug->7
248248

249249
客户端与服务端间会间隔5s相互发送延迟测量包,这个时间间隔不可修改。
250250
可修改延迟测量包丢包的次数,默认为60也就是5分钟都收不到一个延迟测量回包,则会断开客户端连接。
251+
值得注意的是需要客户端的socket关闭,才会进行重连,也就是当客户端无法收到服务端的fin包时,只有客户端自行关闭socket才行。
252+
也就是假如服务端设置为较低值,而客户端设置较高值,而此时服务端断开连接而客户端无法收到服务端的fin包,客户端也会继续等着直到触发客户端的超时设置。
253+
254+
`nps.conf``npc.conf`中设置`disconnect_timeout`即可,客户端还可附带`-disconnect_timeout=60`参数启动

docs/server_config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ p2p_ip| 服务端Ip,使用p2p模式必填
2121
p2p_port|p2p模式开启的udp端口
2222
pprof_ip|debug pprof 服务端ip
2323
pprof_port|debug pprof 端口
24+
disconnect_timeout|客户端连接超时,单位 5s,默认值 60,即 300s = 5mins

0 commit comments

Comments
 (0)