Check the properties of the network hardware. There should be a "Power Management" tab. Ensure that "Allow the computer to turn off this device to save power" is not check.
Ensure that there isn't an auto-disconnect setting. Use
this guide to turn off auto-disconnect.