Date: Wed, 1 Mar 2023 02:35:17 -0800 From: Yuri <yuri@FreeBSD.org> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: sshd doesn't disconnect for 30+ minutes after the TCP connection is closed ungracefully Message-ID: <baf5faa3-3c03-fb9e-4196-bd26c2fc622e@tsoft.com>
next in thread | raw e-mail | index | archive | help
Windows system connects to FreeBSD through ssh and then this connection dies because of WiFi or VPN issues. FreeBSD still has the sshd process alive for this connection for 30+ minutes. TCP keepalive is enabled on the FreeBSD host: $ sysctl net.inet.tcp.always_keepalive net.inet.tcp.always_keepalive: 1 Shouldn't TCP keepalive kill this sshd process after 3-4 minutes because this connection isn't alive? Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?baf5faa3-3c03-fb9e-4196-bd26c2fc622e>