Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Jan 2 '13 at 13:16

This question came from our site for professional and enthusiast programmers.

Program the mouse to play with the cat? – Simon Mourier Dec 28 '12 at 10:29
Use your WiFi ? – rdkleine Dec 28 '12 at 14:41
Show us some code... how can we possibly answer this question? – Mike Pennington Jan 1 '13 at 11:42
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. – user1933738 Jan 1 '13 at 13:57
@user1933738, If there is no code, then you should have asked the question on Super User. Stack Overflow is for programming questions; Super User is for questions like this. – Mike Pennington Jan 1 '13 at 19:44

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.

share|improve this answer
It's not about my own programs, its about general using of the computer - downloads, IRC, movie streams – user1933738 Dec 28 '12 at 19:25
Yep, u can do is have UDP connection from your system to some outside gateway, then implement in gateway to create TCP connections. – user1508907 Dec 28 '12 at 19:28
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 – user1933738 Dec 28 '12 at 19:31
But its happening due to TCP in Windows, so you don't have any other option – user1508907 Dec 28 '12 at 19:41
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. – user1508907 Dec 28 '12 at 19:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .