For the impatient:
How to change the value of /proc/sys/net/ipv4/tcp_retries2
for a single connection in Linux, using setsockopt()
This is for my understanding. tcp_retries2 is the number of retransmission that is permitted by the system before droping the conection.So if we want to change the default value of tcp_retries2 using TCP_USER_TIMEOUT which specifies the maximum amount of time transmitted data may remain unacknowledged, we have to increase the value of TCP_USER_TIMEOUT right?
In that case the conction will wait for a longer time and will not retransmit the data packet. Please correct me, if something is wrong.