I am programming linux device driver over a very slow interface, whose ping round time can be as long as several minutes. When I try to use TCP to establish connection between two nodes the connection always times out.
Is there a method to set the TCP retransmission or handshaking timeout longer in the driver, or are there any commands to set it with? Thanks
Have you tried searching for an answer to this question? A quick Google search gave me this, which appears to directly address this issue. The summary is that the setting of the
net.ipv4.tcp_syn_retries
determines that maximum timeout available to TCP connections.If that document doesn't answer your question, you should indicate what you tried and how the behavior differed from what you expected.
.