fix: websocket headroom

This commit is contained in:
gVisor bot 2023-02-18 13:58:08 +08:00
parent 71a8982768
commit 63510ea0cf

View File

@ -301,6 +301,10 @@ func (wsedc *websocketWithEarlyDataConn) SetWriteDeadline(t time.Time) error {
return wsedc.Conn.SetWriteDeadline(t)
}
func (wsedc *websocketWithEarlyDataConn) LazyHeadroom() bool {
return wsedc.Conn == nil
}
func (wsedc *websocketWithEarlyDataConn) Upstream() any {
return wsedc.Conn
}