esskar has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
this is a following up question of the own "mod_perl" implemenation-node. I already posted this question there (Re^2: own "mod_perl" implemenation) but i think i got lost.
As you can see, i want to do a little speed up for my web scripts.
But if the script's calls exit, or die, the whole pipe-server shuts down. I know how to override perl internals (see the other node) but i want to achive that calling exit, die, ... really ends the script but not pipe-server.
So how do i have to implement myexit? Any ideas?
this is a following up question of the own "mod_perl" implemenation-node. I already posted this question there (Re^2: own "mod_perl" implemenation) but i think i got lost.
As you can see, i want to do a little speed up for my web scripts.
I wrote two applications a NamedPipe Server and a NamedPipe Client. The WebServer just calls the NamedPipe client as it would call the perl binary to run a cgi-script. The Client than connects to the NamedPipe Server which holds a number of precompliled instances of the script. I feed one instance with the data just received from the client and redirect the output back to client. It's quite fast. I'm running a catalyst application which is really fast no compared to CGI mode.
But if the script's calls exit, or die, the whole pipe-server shuts down. I know how to override perl internals (see the other node) but i want to achive that calling exit, die, ... really ends the script but not pipe-server.
So how do i have to implement myexit? Any ideas?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Overwriting exit and similar
by Fletch (Bishop) on Jul 26, 2005 at 10:58 UTC | |
by esskar (Deacon) on Jul 26, 2005 at 11:40 UTC | |
by merlyn (Sage) on Jul 26, 2005 at 13:06 UTC | |
by esskar (Deacon) on Jul 26, 2005 at 13:12 UTC | |
Re: Overwriting exit and similar
by jhourcle (Prior) on Jul 26, 2005 at 11:55 UTC |
Back to
Seekers of Perl Wisdom