I have a network problem on my MacOS that i need to troubleshoot. I know that TCP socket has internal timeout that will close connection if remote party is not responding (but no graceful disconnect either). Is it any command/tool i can use to check exact value of this timeout(s)?
You can see all system-set tcp values with
Interpreted from tcp_var.h, tcp_subr.c, and tcp_timer.c:
I believe by default 8 keepalives will be sent before the connection is closed if SO_KEEPALIVE is set. Times are in milliseconds.
For linux you can use:
I'm not sure if this is what you're looking for, but you can check the keep-alive value with:
Maybe unrelated, but works for me:
I'm trying to determine the ssh/tcp interactive timeout to one of our servers, so i just:
example output: