Manually forcing TCP connection to retry

Posted by Vi. on Super User See other posts from Super User or by Vi.
Published on 2010-06-09T13:01:26Z Indexed on 2012/04/08 17:34 UTC
Read the original article Hit count: 221

Filed under:
|
|
  1. I have a TCP connection (SSH session to some computer for example)
  2. Network suddenly goes down and drops all packets (disconnected cable, out of range).
  3. TCP resends packets again and again, retrying with increasing delays.
  4. I see the problem and plug the cable back (or restore network somehow).
  5. TCP connection finally successfully resends some packet and continues.

The problem is that I need to wait for a some timeout on point 5. I want to use my opened SSH session now and not wait for 5-10 seconds until it finds out that connection is working again.

How to force all TCP connections to resend data without delays in GNU/Linux?

© Super User or respective owner

Related posts about linux

Related posts about networking