The eval sounds similar to the Try/Catch structure of Java. (I don't do 
Java, but I've seen some code before.) I'll do some research on that.

But, there might be a problem. I noticed that when I faked a loss of 
communication, a 504 Gateway timeout dumped to the screen. It didn't 
seem like it returned control to my script (though I haven't tested that 
yet).

Is there anything I can code for on my web server that can handle the 
timeout thrown by the proxy server trying to reach a third server?

Perrin Harkins wrote:
> On 4/3/07, Doug Dawson <[EMAIL PROTECTED]> wrote:
>> While I've been looking into this, I found out the Systems guys got
>> pressed for a solution too and they are installing a monitoring tool
>> that will crawl the site and notify me and other when stuff goes down.
>> So, code changes are no longer needed.
>
> For future reference, the way to trap errors in perl is eval.  Read up
> on the block form of eval and how it can be used to trap exceptions.
> Also, you probably want to change your Mason configuration so it shows
> a pretty error screen to your users instead of a stack trace.  The
> stack trace is for development, not for production.
>
> - Perrin
>


-- 
Doug Dawson
Web Developer
Physicians Mutual Insurance Company
(402) 930-2432

It has become appallingly obvious that our technology has exceeded our humanity.


____________________________________________________________
This message and any attachments are confidential, may contain privileged
information, and are intended solely for the recipient named above.
If you are not the intended recipient, or a person responsible for
delivery to the named recipient, you are notified that any review,
distribution, dissemination or copying is prohibited.  If you have
received this message in error, you should notify the sender by return
email and delete the message from your computer system.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to