vdevlysh / devdefined-tools

Automatically exported from code.google.com/p/devdefined-tools
0 stars 0 forks source link

Patch: First HTTPRequest taking veery long #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There's an issue with HttpWebRequest, in some environments (misconfigured 
environments?), the first request on a HttpWebRequest instance takes 
disproportional long, up to 30 and more seconds.

The problem seems to be the automatic proxy detection that HttpWebRequest 
implicitly does.

I attached a patch that completely disables the proxy detection (sets the 
HttpWebRequest.Proxy property to NULL).
This does the trick and the first request doesn't take longer than any other 
request anymore.

Hope someone saves some time with this :)

Best Regards,
André

Original issue reported on code.google.com by c...@pirate-dev.com on 8 Jul 2012 at 10:43

Attachments: