How do I prevent connection resets upon pulling the ethernet cable?

3

In Windows, when you pull out (trip over it) a network cable, then the connections get reset.

If you do the same on a Linux box or if you put a switch between PC and router and then pull the cable router-switch, then connections don't get reset if you put in the cable fast enough (thanks to TCPs retransmission).

Suppose I am downloading a file with Firefox; how do I prevent Windows from resetting the TCP connection automatically if the ethernet cable is unplugged during the download? My receptacle is broken and my cat always manages to pull out the LAN cable

user1933738

Posted 2012-12-28T05:52:14.650

Reputation: 176

4Program the mouse to play with the cat? – None – 2012-12-28T10:29:40.703

Use your WiFi ? – rdkleine – 2012-12-28T14:41:11.183

Show us some code... how can we possibly answer this question? – Mike Pennington – 2013-01-01T11:42:30.167

There is no code... open Firefox, start a huge download, pull the network cable and put it in again after a couple of seconds. The download will be either messed up by Firefox or if you're lucky it is resumable. – None – 2013-01-01T13:57:09.763

@user1933738, If there is no code, then you should have asked the question on [su]. [so] is for programming questions; [su] is for questions like this. – Mike Pennington – 2013-01-01T19:44:55.510

Answers

0

That may depend on TCP implementation on Windows. Create your own reliable protocol over UDP. And if you want TCP connections, use gateway where cat won't come. So that you can communicate over UDP between your machine and gateway, gateway will in turn make your proxy over TCP to outside world.

user1508907

Posted 2012-12-28T05:52:14.650

Reputation:

It's not about my own programs, its about general using of the computer - downloads, IRC, movie streams – None – 2012-12-28T19:25:35.723

Yep, u can do is have UDP connection from your system to some outside gateway, then implement in gateway to create TCP connections. – None – 2012-12-28T19:28:51.650

You mean, something like a proxy? Actually no bad idea - but there has to be another way which doesn't need another machine to act as gateway – None – 2012-12-28T19:31:16.627

But its happening due to TCP in Windows, so you don't have any other option – None – 2012-12-28T19:41:21.860

You can't modify TCP in windows, you can do is create your own protocol over UDP. Please go ahead and buy other machine for making gateway. – None – 2012-12-28T19:48:43.747