我可以更改/添加KeepAliveTime和相关的注册表变量,以使
Windows机器在空闲连接上发送TCP keepalive数据包吗?
我想知道是否有人成功地完成了这项工作.具体来说,当TCP连接上的应用程序空闲时,什么都不做(setsockopt)以保持连接.
此Microsoft TechNet详细介绍了Configuring system wide Keep-Alives与KeepAliveTime及相关的注册表变量.
07002
好像是Linux system wide configuration for using keep-alive.
但是,这需要程序使用setsockopt()并请求keep-alive(对吗?).
Remember that keepalive support,even if configured in the kernel,is not the default behavior in Linux. Programs must request keepalive control for their sockets using the setsockopt interface. There are relatively few programs implementing keepalive…