Manually forcing TCP connection to retry
- by Vi.
I have a TCP connection (SSH session to some computer for example)
Network suddenly goes down and drops all packets (disconnected cable, out of range).
TCP resends packets again and again, retrying with increasing delays.
I see the problem and plug the cable back (or restore network somehow).
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?