This is my code:
error_log('download start');
readfile('setup.exe');
error_log('download complete');
The file was received successfully but the third line is not executed, its not log the 'download complete' We facing this problem for a long time we tried also to send chunks (using flush) of this file and after several chunks the connection lost so the rest executable code is not running (but the file received). We know that the connection is lost by using connection handling in php. We also set connection time limit to max.