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 2010/06/09 13:13 UTC
Read the original article Hit count: 215

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 now in GNU/Linux?

© Super User or respective owner

Related posts about linux

Related posts about networking