Streamreader freezing on close
<p>I have an app that reads tweets from Twitter based on keywords.  Those keywords can change periodically, and when they do, I need to close and re-open the stream.  I am able to open the stream no problem, but I am having an issue when I tried to close that stream.  Here is some example code:</p>

<pre><code>        try
        {
            response = (HttpWebResponse)request.GetResponse();
            using (Stream stream = response.GetResponseStream())
            {
                using (StreamReader reader = new StreamReader(stream))
                {
                    WriteLogMessage("Stream open - entering loop");
                    while (true)
                    {
                        if (count == 10) break;
                        count++;

                        string tweet = reader.ReadLine();
                        Console.Write(tweet);
                    }

                    WriteLogMessage("Exited loop");
                }
                /**** Program seems to freeze and never gets past this point ****/
                WriteLogMessage("Reader disposed");
            }
            WriteLogMessage("Stream disposed");
        }
        catch (Exception ex)
        {
            WriteLogMessage(ex.Message);
        }
        finally
        {
            if (response != null)
                response.Dispose();
            WriteLogMessage("Response closed");
        }
</code></pre>

<p>This code runs fine on my win7 (x64) machine.  However, when I deploy it to either server 2008 or server 2012 (both x64), I see this freezing behavior.  I am setting no parameters on the HttpWebRequest other than a header that twitter requires.  Anyone have any thoughts about whats going on?</p>
