Skip to content

Commit

Permalink
Decrease read response stream timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Aug 10, 2022
1 parent 410a34c commit 73af60a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Bonsai.Editor/DocumentationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ static async Task<Dictionary<string, string>> GetXRefMapAsync(string baseUrl, pa

static async Task<Dictionary<string, string>> GetXRefMapAsync(string baseUrl)
{
const int ReadWriteTimeout = 10000;
var requestUrl = $"{baseUrl}/xrefmap.yml";
var request = WebRequest.CreateHttp(requestUrl);
request.ReadWriteTimeout = ReadWriteTimeout;
request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.Revalidate);
using var response = await request.GetResponseAsync();
var stream = response.GetResponseStream();
Expand Down

0 comments on commit 73af60a

Please sign in to comment.