Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: FastCGi on IIS... The tale of Microsoft and my new Perl Module...

by cosmicperl (Chaplain)
on Oct 19, 2007 at 14:26 UTC ( #645980=note: print w/ replies, xml ) Need Help??


in reply to Re^3: FastCGi on IIS... The tale of Microsoft and my new Perl Module...
in thread FastCGi on IIS... The tale of Microsoft and my new Perl Module...

I'm working on cleanup routines now and trying to contain what each script loads. Any help is much appreciated :)

Update:- namespace::clean does a lot of what's needed...


Comment on Re^4: FastCGi on IIS... The tale of Microsoft and my new Perl Module...
Re^5: FastCGi on IIS... The tale of Microsoft and my new Perl Module...
by perrin (Chancellor) on Oct 19, 2007 at 16:01 UTC

    I'm afraid namespace::clean will only help with things in the current package. It won't help with reloading modules when they change. For mod_perl, we use Apache2::Reload to do that, and I think there are similar things for FastCGI.

    The fact is though, all of this is a total hack. There is no way to reload modules built into perl, and none of the approaches people have tried to add on actually work for all cases. So, the best advice is to code differently for persistent environments like FastCGI and mod_perl.

    I would advise you to offer an option that works more like the other FastCGI modules and like mod_perl handlers, i.e. it doesn't try to pretend to be CGI, so it offers the full speed advantage of a persistent interpreter. If you don't do that, your solution will always be significantly slower than mod_perl and PHP over FastCGI.

      I'll be giving them a guide on how to use FastCGI with Perl fully, but that'll just be using FCGI or CGI::Fast.

      My current thinking, it taking a snap shot of the original symbol table, and returning to it after each iteration...
        You mean FCGI and CGI::Fast both work on the new IIS FastCGI? In that case, I'd say your module is misnamed, since it has nothing to do with IIS and is all about providing a fake CGI environment. I'd suggest something like FCGI::CGIWrapper.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://645980]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2014-10-23 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (124 votes), past polls