C # httpwebrequest timeout

Setting invalid timeout situation (much larger than the actual timeout setting time) httpwebrequest appear, there are said to be online because dns resolve problems, measured, dns resolution has little effect and can be ignored

The commissioning found, proxy attribute httpwebrequest objects created default is to use the local system proxy loopback address that, after you create manually proxy is set to null, returned to normal, the same time and timeout settings

But another problem occurs when using a proxy (webproxy), timeout will appear much larger than the actual time to set the time, the cause has not yet been found, possibly when using a proxy, it is useless timeout, the actual timeout time-dependent external proxy server timeout

Guess you like

Origin www.cnblogs.com/Wind-yesterday/p/10983945.html