Enable timeout to switch mirror download

When a primary download site is down, it takes long time to switch to mirror. 
This patch is for adding explicitly 5 seconds timeout.