Skip to content

Commit

Permalink
Update feature.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ffdfgdfg authored May 9, 2020
1 parent da6e392 commit 3674a99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,7 @@ LevelInformational->6 LevelDebug->7

客户端与服务端间会间隔5s相互发送延迟测量包,这个时间间隔不可修改。
可修改延迟测量包丢包的次数,默认为60也就是5分钟都收不到一个延迟测量回包,则会断开客户端连接。
值得注意的是需要客户端的socket关闭,才会进行重连,也就是当客户端无法收到服务端的fin包时,只有客户端自行关闭socket才行。
也就是假如服务端设置为较低值,而客户端设置较高值,而此时服务端断开连接而客户端无法收到服务端的fin包,客户端也会继续等着直到触发客户端的超时设置。

`nps.conf``npc.conf`中设置`disconnect_timeout`即可
`nps.conf``npc.conf`中设置`disconnect_timeout`即可,客户端还可附带`-disconnect_timeout=60`参数启动

0 comments on commit 3674a99

Please sign in to comment.