|
|
|
|
Timeout.pm - Script Control for IIS
Although IIS does have setting to control the lifetime
of CGI scripts, it doesn't always work. The solution is
very straight forward using a simple little script that
we provide. In IIS you can set individual ASP timeouts per
site. With this script you can do the same for CGI Perl
scripts. If you are running Windows2000 we highly recommend
that you use this module as there is a problem with the
IIS CGI timeout setting when a script goes into a certain
kind of loop.
Using Timeout.pm
Download Timeout.pm below and put it into your Perl
lib folder (default is "c:\Perl\lib").
Timeout.pm download (Right click
and select 'Save Target As').
Now you need to update the IIS configuration to use
Timeout.pm. This can be easily done by following these instructions:-
- Open the 'Internet Services Manager' (program opens
with the title 'Internet Information Services'.
- Right click on your server name and select properties.
- Under 'Master Properties' select 'WWW service' and click
Edit.
- Select the tab 'Home Directory' and click the button
'Configuration' in the 'Application settings' section.
- Select the tab 'App Mappings', from this screen you
should see an association for .pl and .cgi files with
the perl.exe program.
- Double click on the .pl association.
- In the section Executable: change line
C:\Perl\bin\perl.exe "%s" %s
to
C:\Perl\bin\perl.exe -MTimeout=90 "%s" %s
This sets a timeout of 90 seconds the same as ASP.
- Repeat this for the .cgi association.
- Click the button 'Ok'
- Again Click the button 'Ok'.
- When a window pops up titled 'Inheritance Overrides'
make sure you click the buttons 'Select All' Then 'OK'.
Failure to do this will mean that you'll need to add this
setting to each website individually.
- If you want to edit the timeout setting for individual
sites you can by updating their 'App Mappings'.
Beyond Timeout.pm
We are developing a module called SafeRun.pm.
It's purpose is to create an extremely safe running environment
controlled by Perl itself. If you are an advanced Perl programmer
we could do with your support!
|
|
|
|
|
|
|
|
|
|
Want
the latest news?
Then why not sign
up for our newsletter? Be notified immediately about new
products, upgrades, sales, discounts, bug fixes, site updates
and more. |
|
|
|
|
|