Re: timing out exec statements
| From: | Brad Dameron | Date: | Mon, 16 Jun 2003 20:29:36 +0000 |
| Subject: | Re: timing out exec statements | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151721@lists.php.net to get a copy of this message | ||
Wouldn't this be best done inside your perl script? That way you can have it
retry a few times then if it hard fails return to the PHP script.
Brad
----- Original Message -----
From: "Dave [Hawk-Systems]" <dave@hawk-systems.com>
To: "php list" <php-general@lists.php.net>
Sent: Monday, June 16, 2003 11:55 AM
Subject: [PHP] timing out exec statements
> we are dropping to a perl script to process transactions, occasionally the
> remote server the perl script interacts with becomes bogged, the
transaction
> goes into limbo, or for whatever reason the processing of that transaction
hangs
> (happening about 0.2% of the time).
>
> Is there a way to time and timeout the exec statement... just assume it
has
> failed, ditch the execution, and handle the failed transaction after X
seconds?
>
> The alternative we have is to run the exec and redirect the return results
to
> another script so that no single exec would graing the whole master php
script
> to a halt.
>
> thoughts?
>
> Dave
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>