<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS 7 - FastCGI Module</title><link>http://forums.iis.net/1104.aspx</link><description>Questions related to the FastCGI module for IIS7</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1890159.aspx</link><pubDate>Fri, 16 Jan 2009 10:03:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1890159</guid><dc:creator>safakkaya</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1890159.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1890159</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;ksingla:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;If you need an official fix, you need to contact microsft support. If you are administrator on the server, you can take ownership of schema file (system32\inetsrv\config\iis_schema.xml)&amp;nbsp;and change the max allowed value yourself. Another way would be to write a native module which sets &amp;quot;ignoreInvalidRanges&amp;quot; metadata to true.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Kanwal&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks Kanwal,&lt;/p&gt;
&lt;p&gt;I can setup my php script&amp;nbsp;(fastcgi)&amp;nbsp;to run about 3-4 hours now.&lt;/p&gt;</description></item><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1890152.aspx</link><pubDate>Fri, 16 Jan 2009 06:19:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1890152</guid><dc:creator>Gengar003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1890152.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1890152</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;ksingla:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Another way would be to write a native module which sets &amp;quot;ignoreInvalidRanges&amp;quot; metadata to true.&lt;/b&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

I would be very interested to hear more about this - can you point me to some literature or documentation about what &amp;quot;writing a native module&amp;quot; entails, and/or where I would find the &amp;quot;ignoreInvalidRanges&amp;quot; setting?</description></item><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1890049.aspx</link><pubDate>Thu, 15 Jan 2009 09:09:03 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1890049</guid><dc:creator>ksingla</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1890049.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1890049</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;If you need an official fix, you need to contact microsft support. If you are administrator on the server, you can take ownership of schema file (system32\inetsrv\config\iis_schema.xml)&amp;nbsp;and change the max allowed value yourself. Another way would be to write a native module which sets &amp;quot;ignoreInvalidRanges&amp;quot; metadata to true.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Kanwal&lt;/p&gt;</description></item><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1890033.aspx</link><pubDate>Thu, 15 Jan 2009 03:52:11 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1890033</guid><dc:creator>safakkaya</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1890033.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1890033</wfw:commentRss><description>&lt;p&gt;Hi, i&amp;#39;m waiting this patch too...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m very happy with my php systems on IIS7 but i need to execute some phps from cronjobs (after now from&amp;nbsp;task scheduler:) for several hours.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;</description></item><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1887465.aspx</link><pubDate>Sat, 13 Dec 2008 16:00:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887465</guid><dc:creator>Gengar003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887465.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887465</wfw:commentRss><description>I am pleased to hear it! However, is there any hope of a patch or update for Windows Server 2008 (x64)&amp;#39;s IIS7 that would allow for a greater timeout?</description></item><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1887300.aspx</link><pubDate>Thu, 11 Dec 2008 19:02:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1887300</guid><dc:creator>ksingla</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1887300.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1887300</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We have changed the allowed maximum to 30 days in win7.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Kanwal&lt;/p&gt;</description></item><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1886020.aspx</link><pubDate>Wed, 26 Nov 2008 09:01:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1886020</guid><dc:creator>Gengar003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1886020.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1886020</wfw:commentRss><description>I am fine blocking a fastCGI instance to just one request for several hours. The script in question will be requested by one user and won&amp;#39;t ever have more than one, &lt;i&gt;possibly&lt;/i&gt; two hours-long instances running at once.

The server running the scripts has enough memory and processing power to dedicate a couple fastcgi instances to a script for several hours.

I would be immensely pleased if higher values (ideally, arbitrary values) were allowed in future releases.</description></item><item><title>Re: FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1885978.aspx</link><pubDate>Wed, 26 Nov 2008 01:22:22 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885978</guid><dc:creator>ksingla</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1885978.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1885978</wfw:commentRss><description>&lt;p&gt;IIS schema enforces this limit and cannot be overridden. Are you fine blocking a fastcgi application instance to just one request for several hours? Is the&amp;nbsp;script going to be requested only once by one user? If your scenario is valid, we can definitely change schema to allow higher values for activityTimeout for the next release.&lt;br /&gt;&lt;br /&gt;Fastcgi handler doesn&amp;#39;t know about whats happening in the php script. It only monitors activity on the stdout, stderr stream and if the handler don&amp;#39;t see any activity for an extended period, it assumes something wrong happened and kill the process.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Kanwal&lt;/p&gt;</description></item><item><title>FastCGI Maximum ActivityTimeout</title><link>http://forums.iis.net/thread/1885808.aspx</link><pubDate>Mon, 24 Nov 2008 18:14:17 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1885808</guid><dc:creator>Gengar003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1885808.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1104&amp;PostID=1885808</wfw:commentRss><description>Hello... on my IIS7 server, I have php implemented via fastCGI.
&lt;p&gt;
&lt;i&gt;(Windows Server 2008 build 6001, IIS7 version 7.0.6)&lt;/i&gt;
&lt;p&gt;
Some of my scripts I need to run for extended periods of time, up to several hours.
&lt;p&gt;
While PHP itself has no qualms about this, IIS7&amp;#39;s FastCGI &amp;quot;ActivityTimeout&amp;quot; setting refuses to allow itself to be set to more than 3600 seconds (1 hour).
&lt;p&gt;
This is inadequate. Using the management console, I cannot set the value to more than 3600, and when I edit the .xml file directly and restart the server, the .xml file is changed to contain 3600, instead of the value I chose.
&lt;p&gt;
&lt;b&gt;What can I do to allow a php script to run for more than 3600 seconds (FastCGI&amp;#39;s maximum ActivityTimeout)?&lt;/b&gt;
&lt;p&gt;
A good deal of the script in question&amp;#39;s time is spent sleep()ing - is it possible to have FastCGI not count that time toward the activity timeout? Or is there a way to send IIS7 some &amp;quot;activity&amp;quot; from a php script, and thus re-set the timer?
&lt;p&gt;
Are there any updates or workarounds that will solve this for me?
&lt;p&gt;
Thanks in advance</description></item></channel></rss>