public WebSocketListenerOptions() { PingTimeout = TimeSpan.FromSeconds(5); NegotiationQueueCapacity = Environment.ProcessorCount * 1024; ParallelNegotiations = Environment.ProcessorCount * 128; NegotiationTimeout = TimeSpan.FromSeconds(5); WebSocketSendTimeout = TimeSpan.FromSeconds(5); WebSocketReceiveTimeout = TimeSpan.FromSeconds(5); SendBufferSize = 8192; SubProtocols = _noSubProtocols; OnHttpNegotiation = null; UseNagleAlgorithm = true; PingMode = PingModes.BandwidthSaving; }
public WebSocketListenerOptions() { PingTimeout = TimeSpan.FromSeconds(5); NegotiationQueueCapacity = Environment.ProcessorCount * 10; ParallelNegotiations = Environment.ProcessorCount * 2; NegotiationTimeout = TimeSpan.FromSeconds(5); WebSocketSendTimeout = TimeSpan.FromSeconds(5); WebSocketReceiveTimeout = TimeSpan.FromSeconds(5); SendBufferSize = 8192; SubProtocols = _noSubProtocols; OnHttpNegotiation = null; UseNagleAlgorithm = true; PingMode = PingModes.LatencyControl; }