Application control of TCP retransmission on Linux

前端 未结 5 1534
醉话见心
醉话见心 2020-12-02 06:14

For the impatient:

How to change the value of /proc/sys/net/ipv4/tcp_retries2 for a single connection in Linux, using setsockopt()

5条回答
  •  离开以前
    2020-12-02 06:45

    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.

提交回复
热议问题