update schedules direct timeouts
This commit is contained in:
parent
8af05ef4ec
commit
2267a17123
|
@ -126,7 +126,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
||||||
Url = ApiUrl + "/programs",
|
Url = ApiUrl + "/programs",
|
||||||
UserAgent = UserAgent,
|
UserAgent = UserAgent,
|
||||||
CancellationToken = cancellationToken,
|
CancellationToken = cancellationToken,
|
||||||
LogErrorResponseBody = true
|
LogErrorResponseBody = true,
|
||||||
|
// The data can be large so give it some extra time
|
||||||
|
TimeoutMs = 60000
|
||||||
};
|
};
|
||||||
|
|
||||||
httpOptions.RequestHeaders["token"] = token;
|
httpOptions.RequestHeaders["token"] = token;
|
||||||
|
@ -463,7 +465,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.Listings
|
||||||
UserAgent = UserAgent,
|
UserAgent = UserAgent,
|
||||||
CancellationToken = cancellationToken,
|
CancellationToken = cancellationToken,
|
||||||
RequestContent = imageIdString,
|
RequestContent = imageIdString,
|
||||||
LogErrorResponseBody = true
|
LogErrorResponseBody = true,
|
||||||
|
// The data can be large so give it some extra time
|
||||||
|
TimeoutMs = 60000
|
||||||
};
|
};
|
||||||
List<ScheduleDirect.ShowImages> images;
|
List<ScheduleDirect.ShowImages> images;
|
||||||
using (var innerResponse2 = await _httpClient.Post(httpOptions))
|
using (var innerResponse2 = await _httpClient.Post(httpOptions))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user