According to the documentation:
max_execution_time only affect the execution time of the script itself. Any time spent on activity that happens outside the e
From httpd.conf:
Timeout: The number of seconds before receives and sends time out
Timeout 300