I opened system preferences -> energy Saver -> power adapter and I saw this option “Wake for Wifi network access”. Then yesterday I suddenly found this option and it worked like rain drops in desert. But even after making it as preferred, problem did not solve for me.
Basically this link says, Wifi network you connected with should be your preferred network. I got this link from web and I followed step by step guide given in this nice tutorial. I thought okay, now I know the problem, I just go to system preferences and uncheck Wifi sleep mode like I am familiar with android devices but there was no such option and then I started searching on Google for this problem. I realised WiFi is getting disconnected when mac book goes into sleep mode.
I again started download and same happened when my mac book went into sleep mode. When I came back, I saw download was at 2 GB interrupted due to request time out (No internet connectivity). Few days ago, I started downloading a big file of 7GB and then went for lunch hoping my download will finish in 2-3 hours. If you have macbook air or macbook pro, then probably you have faced this issue (if not you will) where your wifi gets disconnected when macbook goes into sleep mode.