Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does browser timeout on huge request?

Assume that I use web browser to upload a huge file(maybe several GB), it may take hours for all the data to be transferred to server. Assume the server has no limit on the size of file upload, it just keeps engulfing data. Will the browser work earnestly for hours till all the data is transferred? Or browser will prompt certain error after some time? Or a browser-specific issue?

like image 998
shsalex Avatar asked Nov 12 '22 15:11

shsalex


1 Answers

A request will always timeout at some point, regardless of the web server you are using (Apache, IIS, etc.) The defaults are usually a couple of minutes, so you will need to increase those. There are also other limits such as maximum file size that you would have to increase. An example of doing this with PHP/Apache can be found here: Increase max_execution_time in PHP?

like image 92
Lucas Avatar answered Jan 04 '23 01:01

Lucas