Increase timeout to 30 seconds (#11358)

This commit is contained in:
David Fowler 2019-06-19 17:43:33 +02:00 committed by GitHub
parent 75c95c56bf
commit 9ea20ddef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
var hostingEventSource = GetHostingEventSource();
using var timeoutTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5));
using var timeoutTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30));
var rpsValues = eventListener.GetCounterValues("requests-per-second", timeoutTokenSource.Token).GetAsyncEnumerator();
var totalRequestValues = eventListener.GetCounterValues("total-requests", timeoutTokenSource.Token).GetAsyncEnumerator();