开发者

set_time_limit does not respect exec() calls

开发者 https://www.devze.com 2023-01-10 08:55 出处:网络
I have an application where I can make calls, that will take anywhere from 60-90 seconds to return. I did set_time_limit(0), but because I am doing an exec() command, it doesn\'t take that into accoun

I have an application where I can make calls, that will take anywhere from 60-90 seconds to return. I did set_time_limit(0), but because I am doing an exec() command, it doesn't take that into account.

So I modify these two values in my php.ini and restarted Apache (CentOS)

max_execution_time = 30开发者_JS百科0     ; Maximum execution time of each script, in seconds
max_input_time = 300    ; Maximum amount of time each script may spend parsing request data

But I make the call in my app, and time it, and it is still dying at 30 seconds? What are my options?


My own fault. I did not set the time out in the Ajax.Request. It was the browser timing it out, not the server.

0

精彩评论

暂无评论...
验证码 换一张
取 消