371 shaares
10 results
tagged
TCP
weird MTU in wireshark - result of TCP segmentation offload
How to set manually set tcp keepalives in curl rather than using Linux Kernel default tcp keepalive - 2 hours (7200 seconds)
Linux Kernel Default Values Ref: https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html
----------------------------------------------------------------------------------------------------------------------------------------------
ubuntu@ip-10-0-135-84:~$ sudo cat /proc/sys/net/ipv4/tcp_keepalive_time
7200
ubuntu@ip-10-0-135-84:~$ sudo cat /proc/sys/net/ipv4/tcp_keepalive_intvl
75
ubuntu@ip-10-0-135-84:~$ sudo cat /proc/sys/net/ipv4/tcp_keepalive_probes
9
--keepalive-time <seconds>
This option sets the time a connection needs to remain idle before sending keepalive probes and the time between individual
keepalive probes. It is currently effective on operating systems offering the TCP_KEEPIDLE and TCP_KEEPINTVL socket options (mean‐
ing Linux, recent AIX, HP-UX and more). This option has no effect if --no-keepalive is used.
If this option is used several times, the last one will be used. If unspecified, the option defaults to 60 seconds.
Added in 7.18.0
Linux Kernel Default Values Ref: https://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html
----------------------------------------------------------------------------------------------------------------------------------------------
ubuntu@ip-10-0-135-84:~$ sudo cat /proc/sys/net/ipv4/tcp_keepalive_time
7200
ubuntu@ip-10-0-135-84:~$ sudo cat /proc/sys/net/ipv4/tcp_keepalive_intvl
75
ubuntu@ip-10-0-135-84:~$ sudo cat /proc/sys/net/ipv4/tcp_keepalive_probes
9
--keepalive-time <seconds>
This option sets the time a connection needs to remain idle before sending keepalive probes and the time between individual
keepalive probes. It is currently effective on operating systems offering the TCP_KEEPIDLE and TCP_KEEPINTVL socket options (mean‐
ing Linux, recent AIX, HP-UX and more). This option has no effect if --no-keepalive is used.
If this option is used several times, the last one will be used. If unspecified, the option defaults to 60 seconds.
Added in 7.18.0