aboutsummaryrefslogtreecommitdiff
path: root/src/vendor/golang.org/x/net/quic/ping.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendor/golang.org/x/net/quic/ping.go')
-rw-r--r--src/vendor/golang.org/x/net/quic/ping.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vendor/golang.org/x/net/quic/ping.go b/src/vendor/golang.org/x/net/quic/ping.go
new file mode 100644
index 0000000000..e604f014bf
--- /dev/null
+++ b/src/vendor/golang.org/x/net/quic/ping.go
@@ -0,0 +1,14 @@
+// Copyright 2023 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package quic
+
+import "time"
+
+func (c *Conn) ping(space numberSpace) {
+ c.sendMsg(func(now time.Time, c *Conn) {
+ c.testSendPing.setUnsent()
+ c.testSendPingSpace = space
+ })
+}