protected WebClientWithTimeout CreateClient()
{
return new WebClientWithTimeout
{
Credentials = this.Credentials,
// make it infinite so it will not stop abort the socket thinking that the server have died
ReadWriteTimeout = System.Threading.Timeout.Infinite,
// this is just the connect timeout
Timeout = this.Timeout,
PreAuthenticate = true
};
}