ITeye博客

keepalive

langzhe · 2014-08-12 17:30 · erlang · 编程语言 · Markdown

{keepalive, Boolean}(TCP/IP sockets)

Enables/disables periodic transmission on a connected socket, when no other data is being exchanged. If the other end does not respond, the connection is considered broken and an error message will be sent to the controlling process. Default disabled.

 

在keepalive的设置时间范围之内,出现网络异常,如客户端把掉网线,这时服务器是无法检测到的。

评论(2)

  1. #2 楼 · bit1129 · 2014-08-12 23:50

    这么复杂的一个东西,一句话说完了?

  2. #1 楼 · waitgod · 2014-08-12 19:53

    一般都是主机默认设置的,应用程序不会随便改的吧。。

评论功能维护中,当前仅展示历史评论。