Prechádzať zdrojové kódy

vendor: golang.org/x/net e18ecbb051101a46fc263334b127c89bc7bff7ea

full diff: https://github.com/golang/net/compare/6772e930b67bb09bf22262c7378e7d2f67cf59d1...e18ecbb051101a46fc263334b127c89bc7bff7ea

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 4 rokov pred
rodič
commit
037c26d863
96 zmenil súbory, kde vykonal 124 pridanie a 19 odobranie
  1. 1 1
      vendor.conf
  2. 1 0
      vendor/golang.org/x/net/context/go17.go
  3. 1 0
      vendor/golang.org/x/net/context/go19.go
  4. 1 0
      vendor/golang.org/x/net/context/pre_go17.go
  5. 1 0
      vendor/golang.org/x/net/context/pre_go19.go
  6. 1 0
      vendor/golang.org/x/net/http2/go111.go
  7. 1 0
      vendor/golang.org/x/net/http2/not_go111.go
  8. 23 7
      vendor/golang.org/x/net/http2/server.go
  9. 1 0
      vendor/golang.org/x/net/idna/idna10.0.0.go
  10. 1 0
      vendor/golang.org/x/net/idna/idna9.0.0.go
  11. 1 0
      vendor/golang.org/x/net/idna/tables10.0.0.go
  12. 1 0
      vendor/golang.org/x/net/idna/tables11.0.0.go
  13. 1 0
      vendor/golang.org/x/net/idna/tables12.0.0.go
  14. 1 0
      vendor/golang.org/x/net/idna/tables13.0.0.go
  15. 1 0
      vendor/golang.org/x/net/idna/tables9.0.0.go
  16. 1 0
      vendor/golang.org/x/net/internal/socket/cmsghdr.go
  17. 1 0
      vendor/golang.org/x/net/internal/socket/cmsghdr_bsd.go
  18. 1 0
      vendor/golang.org/x/net/internal/socket/cmsghdr_linux_32bit.go
  19. 1 0
      vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go
  20. 2 2
      vendor/golang.org/x/net/internal/socket/cmsghdr_solaris_64bit.go
  21. 1 0
      vendor/golang.org/x/net/internal/socket/cmsghdr_stub.go
  22. 1 0
      vendor/golang.org/x/net/internal/socket/cmsghdr_unix.go
  23. 1 0
      vendor/golang.org/x/net/internal/socket/error_unix.go
  24. 1 0
      vendor/golang.org/x/net/internal/socket/iovec_32bit.go
  25. 1 0
      vendor/golang.org/x/net/internal/socket/iovec_64bit.go
  26. 2 2
      vendor/golang.org/x/net/internal/socket/iovec_solaris_64bit.go
  27. 1 0
      vendor/golang.org/x/net/internal/socket/iovec_stub.go
  28. 1 0
      vendor/golang.org/x/net/internal/socket/mmsghdr_stub.go
  29. 1 0
      vendor/golang.org/x/net/internal/socket/mmsghdr_unix.go
  30. 1 0
      vendor/golang.org/x/net/internal/socket/msghdr_bsd.go
  31. 1 0
      vendor/golang.org/x/net/internal/socket/msghdr_bsdvar.go
  32. 1 0
      vendor/golang.org/x/net/internal/socket/msghdr_linux_32bit.go
  33. 1 0
      vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go
  34. 2 2
      vendor/golang.org/x/net/internal/socket/msghdr_solaris_64bit.go
  35. 1 0
      vendor/golang.org/x/net/internal/socket/msghdr_stub.go
  36. 2 2
      vendor/golang.org/x/net/internal/socket/msghdr_zos_s390x.go
  37. 1 0
      vendor/golang.org/x/net/internal/socket/norace.go
  38. 1 0
      vendor/golang.org/x/net/internal/socket/race.go
  39. 1 0
      vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go
  40. 3 3
      vendor/golang.org/x/net/internal/socket/rawconn_msg.go
  41. 1 0
      vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go
  42. 1 0
      vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go
  43. 1 0
      vendor/golang.org/x/net/internal/socket/sys_bsd.go
  44. 1 0
      vendor/golang.org/x/net/internal/socket/sys_const_unix.go
  45. 1 0
      vendor/golang.org/x/net/internal/socket/sys_const_zos.go
  46. 1 0
      vendor/golang.org/x/net/internal/socket/sys_linkname.go
  47. 1 0
      vendor/golang.org/x/net/internal/socket/sys_linux.go
  48. 1 0
      vendor/golang.org/x/net/internal/socket/sys_linux_riscv64.go
  49. 1 0
      vendor/golang.org/x/net/internal/socket/sys_posix.go
  50. 1 0
      vendor/golang.org/x/net/internal/socket/sys_stub.go
  51. 1 0
      vendor/golang.org/x/net/internal/socket/sys_unix.go
  52. 1 0
      vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go
  53. 1 0
      vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go
  54. 1 0
      vendor/golang.org/x/net/ipv4/control_bsd.go
  55. 1 0
      vendor/golang.org/x/net/ipv4/control_pktinfo.go
  56. 1 0
      vendor/golang.org/x/net/ipv4/control_stub.go
  57. 1 0
      vendor/golang.org/x/net/ipv4/control_unix.go
  58. 1 0
      vendor/golang.org/x/net/ipv4/icmp_stub.go
  59. 1 0
      vendor/golang.org/x/net/ipv4/payload_cmsg.go
  60. 1 0
      vendor/golang.org/x/net/ipv4/payload_nocmsg.go
  61. 1 0
      vendor/golang.org/x/net/ipv4/sockopt_posix.go
  62. 1 0
      vendor/golang.org/x/net/ipv4/sockopt_stub.go
  63. 1 0
      vendor/golang.org/x/net/ipv4/sys_aix.go
  64. 1 0
      vendor/golang.org/x/net/ipv4/sys_asmreq.go
  65. 1 0
      vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go
  66. 1 0
      vendor/golang.org/x/net/ipv4/sys_asmreqn.go
  67. 1 0
      vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go
  68. 1 0
      vendor/golang.org/x/net/ipv4/sys_bpf.go
  69. 1 0
      vendor/golang.org/x/net/ipv4/sys_bpf_stub.go
  70. 1 0
      vendor/golang.org/x/net/ipv4/sys_bsd.go
  71. 1 0
      vendor/golang.org/x/net/ipv4/sys_ssmreq.go
  72. 1 0
      vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go
  73. 1 0
      vendor/golang.org/x/net/ipv4/sys_stub.go
  74. 1 0
      vendor/golang.org/x/net/ipv4/zsys_aix_ppc64.go
  75. 1 0
      vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go
  76. 1 0
      vendor/golang.org/x/net/ipv6/control_rfc2292_unix.go
  77. 1 0
      vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go
  78. 1 0
      vendor/golang.org/x/net/ipv6/control_stub.go
  79. 1 0
      vendor/golang.org/x/net/ipv6/control_unix.go
  80. 1 0
      vendor/golang.org/x/net/ipv6/icmp_bsd.go
  81. 1 0
      vendor/golang.org/x/net/ipv6/icmp_stub.go
  82. 1 0
      vendor/golang.org/x/net/ipv6/payload_cmsg.go
  83. 1 0
      vendor/golang.org/x/net/ipv6/payload_nocmsg.go
  84. 1 0
      vendor/golang.org/x/net/ipv6/sockopt_posix.go
  85. 1 0
      vendor/golang.org/x/net/ipv6/sockopt_stub.go
  86. 1 0
      vendor/golang.org/x/net/ipv6/sys_aix.go
  87. 1 0
      vendor/golang.org/x/net/ipv6/sys_asmreq.go
  88. 1 0
      vendor/golang.org/x/net/ipv6/sys_asmreq_stub.go
  89. 1 0
      vendor/golang.org/x/net/ipv6/sys_bpf.go
  90. 1 0
      vendor/golang.org/x/net/ipv6/sys_bpf_stub.go
  91. 1 0
      vendor/golang.org/x/net/ipv6/sys_bsd.go
  92. 1 0
      vendor/golang.org/x/net/ipv6/sys_ssmreq.go
  93. 1 0
      vendor/golang.org/x/net/ipv6/sys_ssmreq_stub.go
  94. 1 0
      vendor/golang.org/x/net/ipv6/sys_stub.go
  95. 1 0
      vendor/golang.org/x/net/ipv6/zsys_aix_ppc64.go
  96. 1 0
      vendor/golang.org/x/net/ipv6/zsys_linux_riscv64.go

+ 1 - 1
vendor.conf

@@ -18,7 +18,7 @@ github.com/moby/sys                                 b0f1fd7235275d01bd35cc4421e8
 github.com/creack/pty                               2a38352e8b4d7ab6c336eef107e42a55e72e7fbc # v1.1.11
 github.com/sirupsen/logrus                          6699a89a232f3db797f2e280639854bbc4b89725 # v1.7.0
 github.com/tchap/go-patricia                        a7f0089c6f496e8e70402f61733606daa326cac5 # v2.3.0
-golang.org/x/net                                    6772e930b67bb09bf22262c7378e7d2f67cf59d1
+golang.org/x/net                                    e18ecbb051101a46fc263334b127c89bc7bff7ea
 golang.org/x/sys                                    d19ff857e887eacb631721f188c7d365c2331456
 github.com/docker/go-units                          519db1ee28dcc9fd2474ae59fca29a810482bfb1 # v0.4.0
 github.com/docker/go-connections                    7395e3f8aa162843a74ed6d48e79627d9792ac55 # v0.4.0

+ 1 - 0
vendor/golang.org/x/net/context/go17.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.7
 // +build go1.7
 
 package context

+ 1 - 0
vendor/golang.org/x/net/context/go19.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.9
 // +build go1.9
 
 package context

+ 1 - 0
vendor/golang.org/x/net/context/pre_go17.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !go1.7
 // +build !go1.7
 
 package context

+ 1 - 0
vendor/golang.org/x/net/context/pre_go19.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !go1.9
 // +build !go1.9
 
 package context

+ 1 - 0
vendor/golang.org/x/net/http2/go111.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.11
 // +build go1.11
 
 package http2

+ 1 - 0
vendor/golang.org/x/net/http2/not_go111.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !go1.11
 // +build !go1.11
 
 package http2

+ 23 - 7
vendor/golang.org/x/net/http2/server.go

@@ -1293,7 +1293,9 @@ func (sc *serverConn) startGracefulShutdown() {
 	sc.shutdownOnce.Do(func() { sc.sendServeMsg(gracefulShutdownMsg) })
 }
 
-// After sending GOAWAY, the connection will close after goAwayTimeout.
+// After sending GOAWAY with an error code (non-graceful shutdown), the
+// connection will close after goAwayTimeout.
+//
 // If we close the connection immediately after sending GOAWAY, there may
 // be unsent data in our kernel receive buffer, which will cause the kernel
 // to send a TCP RST on close() instead of a FIN. This RST will abort the
@@ -1629,23 +1631,37 @@ func (sc *serverConn) processSettingInitialWindowSize(val uint32) error {
 
 func (sc *serverConn) processData(f *DataFrame) error {
 	sc.serveG.check()
-	if sc.inGoAway && sc.goAwayCode != ErrCodeNo {
+	id := f.Header().StreamID
+	if sc.inGoAway && (sc.goAwayCode != ErrCodeNo || id > sc.maxClientStreamID) {
+		// Discard all DATA frames if the GOAWAY is due to an
+		// error, or:
+		//
+		// Section 6.8: After sending a GOAWAY frame, the sender
+		// can discard frames for streams initiated by the
+		// receiver with identifiers higher than the identified
+		// last stream.
 		return nil
 	}
-	data := f.Data()
 
-	// "If a DATA frame is received whose stream is not in "open"
-	// or "half closed (local)" state, the recipient MUST respond
-	// with a stream error (Section 5.4.2) of type STREAM_CLOSED."
-	id := f.Header().StreamID
+	data := f.Data()
 	state, st := sc.state(id)
 	if id == 0 || state == stateIdle {
+		// Section 6.1: "DATA frames MUST be associated with a
+		// stream. If a DATA frame is received whose stream
+		// identifier field is 0x0, the recipient MUST respond
+		// with a connection error (Section 5.4.1) of type
+		// PROTOCOL_ERROR."
+		//
 		// Section 5.1: "Receiving any frame other than HEADERS
 		// or PRIORITY on a stream in this state MUST be
 		// treated as a connection error (Section 5.4.1) of
 		// type PROTOCOL_ERROR."
 		return ConnectionError(ErrCodeProtocol)
 	}
+
+	// "If a DATA frame is received whose stream is not in "open"
+	// or "half closed (local)" state, the recipient MUST respond
+	// with a stream error (Section 5.4.2) of type STREAM_CLOSED."
 	if st == nil || state != stateOpen || st.gotTrailerHeader || st.resetQueued {
 		// This includes sending a RST_STREAM if the stream is
 		// in stateHalfClosedLocal (which currently means that

+ 1 - 0
vendor/golang.org/x/net/idna/idna10.0.0.go

@@ -4,6 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.10
 // +build go1.10
 
 // Package idna implements IDNA2008 using the compatibility processing

+ 1 - 0
vendor/golang.org/x/net/idna/idna9.0.0.go

@@ -4,6 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !go1.10
 // +build !go1.10
 
 // Package idna implements IDNA2008 using the compatibility processing

+ 1 - 0
vendor/golang.org/x/net/idna/tables10.0.0.go

@@ -1,5 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
+//go:build go1.10 && !go1.13
 // +build go1.10,!go1.13
 
 package idna

+ 1 - 0
vendor/golang.org/x/net/idna/tables11.0.0.go

@@ -1,5 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
+//go:build go1.13 && !go1.14
 // +build go1.13,!go1.14
 
 package idna

+ 1 - 0
vendor/golang.org/x/net/idna/tables12.0.0.go

@@ -1,5 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
+//go:build go1.14 && !go1.16
 // +build go1.14,!go1.16
 
 package idna

+ 1 - 0
vendor/golang.org/x/net/idna/tables13.0.0.go

@@ -1,5 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
+//go:build go1.16
 // +build go1.16
 
 package idna

+ 1 - 0
vendor/golang.org/x/net/idna/tables9.0.0.go

@@ -1,5 +1,6 @@
 // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
 
+//go:build !go1.10
 // +build !go1.10
 
 package idna

+ 1 - 0
vendor/golang.org/x/net/internal/socket/cmsghdr.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/cmsghdr_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || netbsd || openbsd
 // +build aix darwin dragonfly freebsd netbsd openbsd
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/cmsghdr_linux_32bit.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build (arm || mips || mipsle || 386) && linux
 // +build arm mips mipsle 386
 // +build linux
 

+ 1 - 0
vendor/golang.org/x/net/internal/socket/cmsghdr_linux_64bit.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build (arm64 || amd64 || ppc64 || ppc64le || mips64 || mips64le || riscv64 || s390x) && linux
 // +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
 // +build linux
 

+ 2 - 2
vendor/golang.org/x/net/internal/socket/cmsghdr_solaris_64bit.go

@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build amd64
-// +build solaris
+//go:build amd64 && solaris
+// +build amd64,solaris
 
 package socket
 

+ 1 - 0
vendor/golang.org/x/net/internal/socket/cmsghdr_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/cmsghdr_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/error_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/iovec_32bit.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build (arm || mips || mipsle || 386) && (darwin || dragonfly || freebsd || linux || netbsd || openbsd)
 // +build arm mips mipsle 386
 // +build darwin dragonfly freebsd linux netbsd openbsd
 

+ 1 - 0
vendor/golang.org/x/net/internal/socket/iovec_64bit.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build (arm64 || amd64 || ppc64 || ppc64le || mips64 || mips64le || riscv64 || s390x) && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || zos)
 // +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
 // +build aix darwin dragonfly freebsd linux netbsd openbsd zos
 

+ 2 - 2
vendor/golang.org/x/net/internal/socket/iovec_solaris_64bit.go

@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build amd64
-// +build solaris
+//go:build amd64 && solaris
+// +build amd64,solaris
 
 package socket
 

+ 1 - 0
vendor/golang.org/x/net/internal/socket/iovec_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/mmsghdr_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !linux && !netbsd
 // +build !aix,!linux,!netbsd
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/mmsghdr_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || linux || netbsd
 // +build aix linux netbsd
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/msghdr_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || netbsd || openbsd
 // +build aix darwin dragonfly freebsd netbsd openbsd
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/msghdr_bsdvar.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || netbsd
 // +build aix darwin dragonfly freebsd netbsd
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/msghdr_linux_32bit.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build (arm || mips || mipsle || 386) && linux
 // +build arm mips mipsle 386
 // +build linux
 

+ 1 - 0
vendor/golang.org/x/net/internal/socket/msghdr_linux_64bit.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build (arm64 || amd64 || ppc64 || ppc64le || mips64 || mips64le || riscv64 || s390x) && linux
 // +build arm64 amd64 ppc64 ppc64le mips64 mips64le riscv64 s390x
 // +build linux
 

+ 2 - 2
vendor/golang.org/x/net/internal/socket/msghdr_solaris_64bit.go

@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build amd64
-// +build solaris
+//go:build amd64 && solaris
+// +build amd64,solaris
 
 package socket
 

+ 1 - 0
vendor/golang.org/x/net/internal/socket/msghdr_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!zos
 
 package socket

+ 2 - 2
vendor/golang.org/x/net/internal/socket/msghdr_zos_s390x.go

@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build s390x
-// +build zos
+//go:build s390x && zos
+// +build s390x,zos
 
 package socket
 

+ 1 - 0
vendor/golang.org/x/net/internal/socket/norace.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !race
 // +build !race
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/race.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build race
 // +build race
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/rawconn_mmsg.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build linux
 // +build linux
 
 package socket

+ 3 - 3
vendor/golang.org/x/net/internal/socket/rawconn_msg.go

@@ -2,13 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows zos
 
 package socket
 
 import (
 	"os"
-	"runtime"
 	"syscall"
 )
 
@@ -25,7 +25,7 @@ func (c *Conn) recvMsg(m *Message, flags int) error {
 	var n int
 	fn := func(s uintptr) bool {
 		n, operr = recvmsg(s, &h, flags)
-		if operr == syscall.EAGAIN || (runtime.GOOS == "zos" && operr == syscall.EWOULDBLOCK) {
+		if operr == syscall.EAGAIN || operr == syscall.EWOULDBLOCK {
 			return false
 		}
 		return true
@@ -62,7 +62,7 @@ func (c *Conn) sendMsg(m *Message, flags int) error {
 	var n int
 	fn := func(s uintptr) bool {
 		n, operr = sendmsg(s, &h, flags)
-		if operr == syscall.EAGAIN || (runtime.GOOS == "zos" && operr == syscall.EWOULDBLOCK) {
+		if operr == syscall.EAGAIN || operr == syscall.EWOULDBLOCK {
 			return false
 		}
 		return true

+ 1 - 0
vendor/golang.org/x/net/internal/socket/rawconn_nommsg.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !linux
 // +build !linux
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/rawconn_nomsg.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || openbsd
 // +build aix darwin dragonfly freebsd openbsd
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_const_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_const_zos.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build zos
 // +build zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_linkname.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || (go1.12 && darwin)
 // +build aix go1.12,darwin
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_linux.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build linux && !s390x && !386
 // +build linux,!s390x,!386
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_linux_riscv64.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build riscv64
 // +build riscv64
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_posix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/sys_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build dragonfly || freebsd || (linux && !s390x && !386) || netbsd || openbsd
 // +build dragonfly freebsd linux,!s390x,!386 netbsd openbsd
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/zsys_aix_ppc64.go

@@ -2,6 +2,7 @@
 // cgo -godefs defs_aix.go
 
 // Added for go1.11 compatibility
+//go:build aix
 // +build aix
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/internal/socket/zsys_linux_riscv64.go

@@ -1,6 +1,7 @@
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs defs_linux.go
 
+//go:build riscv64
 // +build riscv64
 
 package socket

+ 1 - 0
vendor/golang.org/x/net/ipv4/control_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || netbsd || openbsd
 // +build aix darwin dragonfly freebsd netbsd openbsd
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/control_pktinfo.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build darwin || linux || solaris
 // +build darwin linux solaris
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/control_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/control_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/icmp_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !linux
 // +build !linux
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/payload_cmsg.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/payload_nocmsg.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!zos
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sockopt_posix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows zos
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sockopt_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_aix.go

@@ -3,6 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Added for go1.11 compatibility
+//go:build aix
 // +build aix
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_asmreq.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || netbsd || openbsd || solaris || windows
 // +build aix darwin dragonfly freebsd netbsd openbsd solaris windows
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_asmreq_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !netbsd && !openbsd && !solaris && !windows
 // +build !aix,!darwin,!dragonfly,!freebsd,!netbsd,!openbsd,!solaris,!windows
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_asmreqn.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build darwin || freebsd || linux
 // +build darwin freebsd linux
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_asmreqn_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !darwin && !freebsd && !linux
 // +build !darwin,!freebsd,!linux
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_bpf.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build linux
 // +build linux
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_bpf_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !linux
 // +build !linux
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build netbsd || openbsd
 // +build netbsd openbsd
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_ssmreq.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build darwin || freebsd || linux || solaris
 // +build darwin freebsd linux solaris
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_ssmreq_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !darwin && !freebsd && !linux && !solaris
 // +build !darwin,!freebsd,!linux,!solaris
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/sys_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/zsys_aix_ppc64.go

@@ -2,6 +2,7 @@
 // cgo -godefs defs_aix.go
 
 // Added for go1.11 compatibility
+//go:build aix
 // +build aix
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv4/zsys_linux_riscv64.go

@@ -1,6 +1,7 @@
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs defs_linux.go
 
+//go:build riscv64
 // +build riscv64
 
 package ipv4

+ 1 - 0
vendor/golang.org/x/net/ipv6/control_rfc2292_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build darwin
 // +build darwin
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/control_rfc3542_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/control_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/control_unix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/icmp_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || netbsd || openbsd
 // +build aix darwin dragonfly freebsd netbsd openbsd
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/icmp_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/payload_cmsg.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/payload_nocmsg.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sockopt_posix.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows || zos
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sockopt_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_aix.go

@@ -3,6 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Added for go1.11 compatibility
+//go:build aix
 // +build aix
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_asmreq.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
 // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_asmreq_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_bpf.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build linux
 // +build linux
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_bpf_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !linux
 // +build !linux
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build dragonfly || netbsd || openbsd
 // +build dragonfly netbsd openbsd
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_ssmreq.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build aix || darwin || freebsd || linux || solaris || zos
 // +build aix darwin freebsd linux solaris zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_ssmreq_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !freebsd && !linux && !solaris && !zos
 // +build !aix,!darwin,!freebsd,!linux,!solaris,!zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/sys_stub.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos
 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/zsys_aix_ppc64.go

@@ -2,6 +2,7 @@
 // cgo -godefs defs_aix.go
 
 // Added for go1.11 compatibility
+//go:build aix
 // +build aix
 
 package ipv6

+ 1 - 0
vendor/golang.org/x/net/ipv6/zsys_linux_riscv64.go

@@ -1,6 +1,7 @@
 // Code generated by cmd/cgo -godefs; DO NOT EDIT.
 // cgo -godefs defs_linux.go
 
+//go:build riscv64
 // +build riscv64
 
 package ipv6