Re[2]: How to handle "Internal Server Error"
Jack <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello jancha, j> This can be done, however, might be a bad idea because: j> if your program is faulty, fastcgi will keep re-launching it all the time - j> and what if the reason for crashing is for instance some kind of memory leak? j> it might be unsafe.. I understand. Because the problem doesn't happen with each request, the crash is occasional. So I think some occasional crashes would be better than not having the service available in 10 minutes. >> Re: 3) I'll try to build my own error page for 503. Is there a way >> to run some code to notify the administrator that this has happened? j> I guess you can make "php" page as for 503 error that simply sends an email. Good idea. Oh, when I test with ab, I find that the error code is 500 (Internal Server Error,) instead of 503 (Service Unavailable.) Were you getting 503 instead of 500? Thanks for the sig handler code. I'll put that in for future bugs. I've fixed the one I mentioned :) Jack ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/