Share via


WebSocketAcceptContext.ServerMaxWindowBits 属性

定义

设置可用于压缩的 LZ77 滑动窗口大小的最大以 2 为底的对数。 此设置可降低压缩的内存开销,但代价是压缩率可能会变差。

public int ServerMaxWindowBits { get; set; }
member this.ServerMaxWindowBits : int with get, set
Public Property ServerMaxWindowBits As Integer

属性值

15

注解

当 为 false 或客户端不使用压缩时 DangerousEnableCompression ,此属性不执行任何作用。 有效值为 9 到 15。

适用于