mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-22 14:36:35 +00:00

## Summary We discovered that we were being impacted by a bug in quic-go, that could create deadlocks and not close connections. This commit bumps quic-go to the version that contains the fix to prevent that from happening.
18 lines
355 B
Go
18 lines
355 B
Go
package wire
|
|
|
|
import (
|
|
"github.com/quic-go/quic-go/internal/protocol"
|
|
)
|
|
|
|
// A PingFrame is a PING frame
|
|
type PingFrame struct{}
|
|
|
|
func (f *PingFrame) Append(b []byte, _ protocol.Version) ([]byte, error) {
|
|
return append(b, pingFrameType), nil
|
|
}
|
|
|
|
// Length of a written frame
|
|
func (f *PingFrame) Length(_ protocol.Version) protocol.ByteCount {
|
|
return 1
|
|
}
|