int readWriteTimeout = request.ReadWriteTimeout > 0 ? request.ReadWriteTimeout : this.ReadWriteTimeout; if (readWriteTimeout > 0) { http.ReadWriteTimeout = readWriteTimeout; }