Set a low 1 second timeout, no need to be a BIG timeout on this request

This commit is contained in:
Warren Buckley
2020-11-30 10:04:21 +00:00
parent 1394387d43
commit b29ed4c9c3

View File

@@ -93,6 +93,8 @@ namespace Umbraco.Web.Telemetry
var request = new HttpRequestMessage(HttpMethod.Post, "installs/");
request.Content = new StringContent(JsonConvert.SerializeObject(postData), Encoding.UTF8, "application/json"); //CONTENT-TYPE header
// Set a low timeout - no need to use a larger default timeout for this POST request
_httpClient.Timeout = new TimeSpan(0,0,1);
// Make a HTTP Post to telemetry service
// https://telemetry.umbraco.com/installs/