Script execution timeout?....

Where I can either set the execution time to unlimited or at a higher time? I’m having too many download execution timeouts. I’d wither it just set there until it finally connects instead of keep retrying.