[fpc-pascal] methods of an object to create others objects
md at delfire.net
Wed Jul 7 16:38:29 CEST 2010
On Wed, Jul 7, 2010 at 10:28 AM, Martin <fpc at mfriebe.de> wrote:
> On 07/07/2010 14:14, Marcos Douglas wrote:
>> Here we have a big problem if the program is a web app using FastCGI.
>> In this case, what we do?
> Write as much info as you have to the servers log file => so you can fix the
> Return a 500 server error; that's what they are there for.
Ok, I know :) I talked about the mem state! Let's continue...
> For the rest I don't know FastCGI good enough. But it needs a way to tell
> the server that t need's to be reloaded => e.g under apache it is common
> that each apache process is reused a certain amount of times => If a bad
> crash has happened then this process needs to be replaced.
> It's good that in apache it's threads (or at least last time I check3ed) and
> not threads => if it was threads, you needed to kill the whole server, with
> processes, you only replace one child process.
Well... I think CGI gateway is a good way. If the real app (FCGI) have
troubles, I can change the URL that the CGI (gateway) uses to call the
real app and to point to another app (in other server, e.g.). What do
you think about it?
More information about the fpc-pascal