Tuesday, 15 April 2014

php - 404 Not Found after a long AJAX request -



php - 404 Not Found after a long AJAX request -

i have function sends big amount of emails out in 1 go.

submit form -> ajax request -> send emails function -> echo response

when request takes around 30 seconds, well, request returns info need , can continue. when request takes longer (around 2 minutes or more) response comes 404 not found.

i've tried debugging section of code echo's response, never gets hit. thought maybe timing out, so... tried increasing max_execution_time , max_input_time in php.ini. tried increasing keepalive_timeout in nginx.confd.

all of emails getting sent regardless of 404, php file doesn't send response when request done (unless stated doesn't take long due little batch of emails)

website running opensuse 12.2, php-fpm 5.4, nginx, mootools, no php framework sending emails pear mail::factory

server wasn't set-up me, new employee @ company

willing effort suggestions...

figured out problem, nginx had next setting

fastcgi_read_timeout 120;

it timing out request. realized writing question , wrote php-fpm

php ajax nginx mootools opensuse

No comments:

Post a Comment