Reduce LongPolling timeout to accommodate Cloudflare's timeout (#1368)

* Reduce LongPolling timeout to accommodate Cloudflare's timeout
This commit is contained in:
Mikael Mengistu 2018-01-29 23:55:08 -08:00 committed by David Fowler
parent bc3e15380c
commit e214d5cdfa
2 changed files with 8 additions and 1 deletions

View File

@ -6,6 +6,6 @@ namespace Microsoft.AspNetCore.Sockets
{
public class LongPollingOptions
{
public TimeSpan PollTimeout { get; set; } = TimeSpan.FromSeconds(110);
public TimeSpan PollTimeout { get; set; } = TimeSpan.FromSeconds(90);
}
}

View File

@ -101,5 +101,12 @@ namespace Microsoft.AspNetCore.Sockets.Tests
var payload = ms.ToArray();
Assert.Equal("Hello World", Encoding.UTF8.GetString(payload));
}
[Fact]
public void CheckLongPollingTimeoutValue()
{
var options = new HttpSocketOptions();
Assert.Equal(options.LongPolling.PollTimeout, TimeSpan.FromSeconds(90));
}
}
}