`
langzhe
  • 浏览: 279329 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

keepalive

 
阅读更多

{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的设置时间范围之内,出现网络异常,如客户端把掉网线,这时服务器是无法检测到的。

0
0
分享到:
评论
2 楼 bit1129 2014-08-12  
这么复杂的一个东西,一句话说完了?
1 楼 waitgod 2014-08-12  
一般都是主机默认设置的,应用程序不会随便改的吧。。

相关推荐

Global site tag (gtag.js) - Google Analytics