golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/quic/ping.go (about)

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build go1.21
     6  
     7  package quic
     8  
     9  import "time"
    10  
    11  func (c *Conn) ping(space numberSpace) {
    12  	c.sendMsg(func(now time.Time, c *Conn) {
    13  		c.testSendPing.setUnsent()
    14  		c.testSendPingSpace = space
    15  	})
    16  }