<?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>IIS7 - Known Issues and Workarounds</title><link>http://forums.iis.net/1067.aspx</link><description>Known issues and workarounds found with IIS7 in the Vista Beta 2 release.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Dynamic Compression and Response.Close Bug</title><link>http://forums.iis.net/thread/1906516.aspx</link><pubDate>Wed, 10 Jun 2009 16:36:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906516</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906516.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1906516</wfw:commentRss><description>&lt;p&gt;HttpApplication.CompleteRequest is the better one to use rather than Response.End - the latter results in a exception being raised which is going to cause performance problems, especially on x64.&lt;/p&gt;</description></item><item><title>Re: Dynamic Compression and Response.Close Bug</title><link>http://forums.iis.net/thread/1906423.aspx</link><pubDate>Tue, 09 Jun 2009 23:46:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1906423</guid><dc:creator>SeanH</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1906423.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1906423</wfw:commentRss><description>&lt;p&gt;
I found Replacing        

Response.Flush();
Response.Close();

With

Response.End();

Resolved a similar issue with dynamic compression for me.

&lt;/p&gt;</description></item><item><title>Re: Dynamic Compression and Response.Close Bug</title><link>http://forums.iis.net/thread/1898362.aspx</link><pubDate>Thu, 26 Mar 2009 22:41:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1898362</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1898362.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1898362</wfw:commentRss><description>&lt;p&gt;It is not clear what issue you were hitting - was the timeout at the client or the server side?&amp;nbsp; Resetting the connection to avoid a timeout seems like a band-aid and seems like you still have some bad problems lurking.&amp;nbsp; Can you collect &amp;quot;failed request tracing&amp;quot; for the request sequence resulting in a timeout?&lt;/p&gt;</description></item><item><title>Re: Dynamic Compression and Response.Close Bug</title><link>http://forums.iis.net/thread/1897739.aspx</link><pubDate>Mon, 23 Mar 2009 04:10:30 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1897739</guid><dc:creator>espresso</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1897739.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1897739</wfw:commentRss><description>Ok then what DO you use?&amp;nbsp; I had to put in response.Close or else I kept getting a timeout error right after request.GetRequestStream() in my code during a bunch of bulk API calls..one right after the other.&amp;nbsp; On the first two API calls I made, they were fine.&amp;nbsp; It was always on that 3rd API call I got a timeout error until I put response.Close() in there.&lt;br /&gt;</description></item><item><title>Re: Dynamic Compression and Response.Close Bug</title><link>http://forums.iis.net/thread/1897737.aspx</link><pubDate>Mon, 23 Mar 2009 04:08:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1897737</guid><dc:creator>espresso</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1897737.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1897737</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ok, then what DO you&amp;nbsp; use?&amp;nbsp; Recently I was getting timeout errors when making a bunch of API calls one right after the other.&amp;nbsp; Until I put in response.Close() I was getting that timeout error after only the 3rd SOAP API call.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Dynamic Compression and Response.Close Bug</title><link>http://forums.iis.net/thread/1881204.aspx</link><pubDate>Fri, 03 Oct 2008 20:54:46 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1881204</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1881204.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1881204</wfw:commentRss><description>&lt;p&gt;Response.Close sends a reset packet to the client and using it&amp;nbsp;in anything other than error condition will lead to all sorts of problems - eg, if you are talking to a client with enough latency, the reset packet can cause any other response data buffered on the server, client or somewhere in between to be dropped.&lt;/p&gt;
&lt;p&gt;In this particular case, compression involves looking for common patterns within the response and some amount of response has to be buffered by the compression code to increase the chance of finding longer repeating patterns - this part that is buffered cannot be sent to the client once you do Response.Close().&lt;/p&gt;
&lt;p&gt;In short, do not use Response.Close().&lt;/p&gt;</description></item><item><title>Dynamic Compression and Response.Close Bug</title><link>http://forums.iis.net/thread/1880687.aspx</link><pubDate>Mon, 29 Sep 2008 21:07:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1880687</guid><dc:creator>eerichmond</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1880687.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1067&amp;PostID=1880687</wfw:commentRss><description>&lt;p&gt;It seems like IIS7 has a bug where if dynamic compression is enabled and you do a Response.Close() the last character of the response stream gets stripped off.&lt;/p&gt;&lt;p&gt;To test it just enabled dynamic compression in IIS7 and create a page with the following Page_Load method:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(&amp;quot;test&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Flush();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;You should notice that the last &amp;quot;t&amp;quot; in the word &amp;quot;test&amp;quot; is missing when you display the page in a web browser. Disabling dynamic compression or commenting out &amp;quot;Response.Close()&amp;quot; eliminates the bug. If anyone has another work around or knows if this is truly a bug I would appreciate any feedback. Thanks.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>