GetWebResponse very slow on windows7
<p>I have tried all the settings, i found on internet to make the C# webclient fast on a Windows7 machine
to no avail. The same exe on Windows XP machine responds in less 100ms for every request.</p>

<p>I have overridden the GetWebRequest function in the derived class of 
<strong>System.Web.Services.Protocols.SoapHttpClientProtocol</strong></p>

<pre><code>    protected override WebRequest GetWebRequest(Uri address)
    {
        //ServicePointManager.UseNagleAlgorithm = false;
        HttpWebRequest.DefaultWebProxy = null;
        ServicePointManager.DefaultConnectionLimit = 4096;
        ServicePointManager.Expect100Continue = false;
        System.Net.ServicePointManager.CheckCertificateRevocationList = false;
        HttpWebRequest request = (HttpWebRequest)base.GetWebRequest(address);
        request.Proxy = HttpWebRequest.DefaultWebProxy;

        return (WebRequest)request;
    }
</code></pre>

<p>protected override WebResponse GetWebResponse(WebRequest request)
        {</p>

<pre><code>        HttpWebResponse response = null;
        //HttpWebRequest.DefaultWebProxy = null;
        //ServicePointManager.Expect100Continue = false;
        response = (HttpWebResponse)base.GetWebResponse(request);
        return response;
    }
</code></pre>

<p>I have also added the socket trace settings in the machine.config .Net4.0 folder
and it always waits on the below statement for 7-15 seconds in the output window</p>

<p><strong>System.Net.Sockets Verbose: 0 : [6088] Socket#54042743::Receive()</strong></p>

<p>Hope some champion has resolved this</p>
