Timeout problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Timeout problem

Postby Stl86 » 08. April 2019 19:12

Hi,

I have installed xampp-windows-x64-5.6.40-1-VC11-installer.exe.

It looks like
Code: Select all
ini_set('max_execution_time',0);

doesn't work. I know that there is TimeOut Setting in httpd-default.conf which now is set to 300.
In my last expirience with Apache 2.2 + PHP 5.3.X there wasn't a problem with that.
When I set max_execution_time to 0 or higher than apache it worked (apache 2.2 + php 5.3.x) correctly.

When i did it on the Apache 2.4 and PHP 5.6.40 it looks like after 300 sec Apache "executes again" php script.
There is no timeout error but the script never ends.
Example:
TimeOut Setting in Apache it's 300.

Code: Select all
ini_set('max_execution_time',350);
unlink('test.txt');
file_put_contents('test.txt', 'START ' . date('H:i:s'). "\n\r",FILE_APPEND);
sleep(320);
file_put_contents('test.txt', 'STOP ' . date('H:i:s'). "\n\r",FILE_APPEND);


This code never ends.. After 5 minutes (300 sec) there is the new file test.txt with just 'START' line.

Can anybody help me ? In my opinion the PHP setting should have priority.

Greetings,
Wojtek
Stl86
 
Posts: 4
Joined: 08. April 2019 19:03
XAMPP version: 5.6.40
Operating System: Windows Server 2008

Re: Timeout problem

Postby Stl86 » 09. April 2019 09:19

I would like to add that if I run script from CMD like php test.php everywthing works OK.

What's wrong with this Apache configuration ?: /

I have noticed that it looks like after run script the script is re execute after 60 sec, and then after 300 sec..
there is no error about timeout.
Stl86
 
Posts: 4
Joined: 08. April 2019 19:03
XAMPP version: 5.6.40
Operating System: Windows Server 2008

Re: Timeout problem

Postby Stl86 » 09. April 2019 13:02

I disabled many modules..proxy etc..and still the same :/
Stl86
 
Posts: 4
Joined: 08. April 2019 19:03
XAMPP version: 5.6.40
Operating System: Windows Server 2008

Re: Timeout problem

Postby Stl86 » 09. April 2019 14:22

I have installed x86 version instead of 64bit... and it looks now it works OK.
I think it's kind of BUG in 64bit version..
Stl86
 
Posts: 4
Joined: 08. April 2019 19:03
XAMPP version: 5.6.40
Operating System: Windows Server 2008


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 68 guests