Change default handshake timeout (#1808)

- 5 seconds seems to be too low for long polling's RTT. We often see super flaky tests and it seems like this is the best fix. Ideally, we would do something more sophisitcated than just timeout the entire time to parse.
This commit is contained in:
David Fowler 2018-03-31 12:27:23 -07:00 committed by GitHub
parent 903a9ea6a0
commit dc86690f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.SignalR
{
public class HubOptionsSetup : IConfigureOptions<HubOptions>
{
internal static TimeSpan DefaultHandshakeTimeout => TimeSpan.FromSeconds(5);
internal static TimeSpan DefaultHandshakeTimeout => TimeSpan.FromSeconds(15);
internal static TimeSpan DefaultKeepAliveInterval => TimeSpan.FromSeconds(15);