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?