• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

PHP throwing "Operation timed out" after 30s

Walter Smith

New Pleskian
Hello,

I'm running Parallel Plesk Panel 11 on Debian 6.0.5 and php v5.3.3.
I'm trying to run this script:
<?php
echo date('h:i:s') . "\n";

// sleep for XX seconds
sleep(55);

echo date('h:i:s') . "\n";
?>

it keeps "loading/connecting" till it reaches 60s (i timed it) and then throws "Operation Timed Out".
only when I give sleep the value of 29 and below it would result in an output.

I tried it on a similar sever configuration but without Parallel Plesk Panel and it ran fine even with sleep(70).

maximum_execution_time is set to 60.

thank you for the help!
 
Try that ...
<?php

ini_set('max_execution_time', 60);

echo date('h:i:s') . "\n";

// sleep for XX seconds
sleep(55);

echo date('h:i:s') . "\n";
?>
 
It timed out still :/

here's the error firefox throwed at me:
Network Error (tcp_error)

A communication error occurred: "Operation timed out"
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

thanks again!
 
Back
Top