GoDaddy, various troubles with max_execution_time and long running scripts:
This seems to be a classical issue with cloud providers. They can terminate your script any time they want. This requires a better strategic approach to overcome......
Algorithm changes, error detection changes, and so on (since the main error log is not available and the standard error log is empty)!
Sample approach in case of a large video file upload on a shared hosting:
Incremental creation of a large video file, by separate, sequential processes piece by piece, instead of a large bulky single process creation from file chunks. Tested on GoDaddy server , and works :)
GoDaddy seems to be dropping long TCP connections. ERR_CONNECTION_RESET occurs even with the chunked file approach. Probably because the TCP connection is shared among the HTTP requests.....
Two giant changes:
->First, if you use non-native version of PHP, it does not seem to issue ERR_CONNECTION_RESET. This could be due to the fact that in this case the system really respects the max_execution_time and other params, which are set in PHP options in CPANEL!!!!!