Skip to content

Commit

Permalink
PING frames are not required to be retransmitted
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiraux committed Nov 20, 2018
1 parent c9fbb06 commit be9278a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frames.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (frame PingFrame) FrameType() FrameType { return PingType }
func (frame PingFrame) writeTo(buffer *bytes.Buffer) {
WriteVarInt(buffer, uint64(frame.FrameType()))
}
func (frame PingFrame) shouldBeRetransmitted() bool { return true }
func (frame PingFrame) shouldBeRetransmitted() bool { return false }
func (frame PingFrame) FrameLength() uint16 { return 1 }
func NewPingFrame(buffer *bytes.Reader) *PingFrame {
frame := new(PingFrame)
Expand Down

0 comments on commit be9278a

Please sign in to comment.