diff --git a/vendor/golang.org/x/crypto/blowfish/ya.make b/vendor/golang.org/x/crypto/blowfish/ya.make index b280eeb36..cd6444e4f 100644 --- a/vendor/golang.org/x/crypto/blowfish/ya.make +++ b/vendor/golang.org/x/crypto/blowfish/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( block.go diff --git a/vendor/golang.org/x/crypto/chacha20/ya.make b/vendor/golang.org/x/crypto/chacha20/ya.make index cb6a9f84c..104fd4ecd 100644 --- a/vendor/golang.org/x/crypto/chacha20/ya.make +++ b/vendor/golang.org/x/crypto/chacha20/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( chacha_generic.go diff --git a/vendor/golang.org/x/crypto/chacha20poly1305/ya.make b/vendor/golang.org/x/crypto/chacha20poly1305/ya.make index 33cbceb36..2c79c5397 100644 --- a/vendor/golang.org/x/crypto/chacha20poly1305/ya.make +++ b/vendor/golang.org/x/crypto/chacha20poly1305/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( chacha20poly1305.go diff --git a/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make b/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make index 4ea21cf86..4cb9e7939 100644 --- a/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make +++ b/vendor/golang.org/x/crypto/cryptobyte/asn1/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( asn1.go diff --git a/vendor/golang.org/x/crypto/cryptobyte/ya.make b/vendor/golang.org/x/crypto/cryptobyte/ya.make index 40f7ba5fc..23e494456 100644 --- a/vendor/golang.org/x/crypto/cryptobyte/ya.make +++ b/vendor/golang.org/x/crypto/cryptobyte/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( asn1.go diff --git a/vendor/golang.org/x/crypto/curve25519/ya.make b/vendor/golang.org/x/crypto/curve25519/ya.make index 14e3f4e2a..0d298a669 100644 --- a/vendor/golang.org/x/crypto/curve25519/ya.make +++ b/vendor/golang.org/x/crypto/curve25519/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( curve25519.go diff --git a/vendor/golang.org/x/crypto/hkdf/ya.make b/vendor/golang.org/x/crypto/hkdf/ya.make index 54cc6d234..4aed75b5d 100644 --- a/vendor/golang.org/x/crypto/hkdf/ya.make +++ b/vendor/golang.org/x/crypto/hkdf/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( hkdf.go diff --git a/vendor/golang.org/x/crypto/internal/alias/ya.make b/vendor/golang.org/x/crypto/internal/alias/ya.make index fc6c63828..62783f59d 100644 --- a/vendor/golang.org/x/crypto/internal/alias/ya.make +++ b/vendor/golang.org/x/crypto/internal/alias/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( alias.go diff --git a/vendor/golang.org/x/crypto/internal/poly1305/ya.make b/vendor/golang.org/x/crypto/internal/poly1305/ya.make index 6c207f479..5eb46cdd7 100644 --- a/vendor/golang.org/x/crypto/internal/poly1305/ya.make +++ b/vendor/golang.org/x/crypto/internal/poly1305/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( poly1305.go diff --git a/vendor/golang.org/x/crypto/ocsp/ya.make b/vendor/golang.org/x/crypto/ocsp/ya.make index d8bd163d8..5416494fb 100644 --- a/vendor/golang.org/x/crypto/ocsp/ya.make +++ b/vendor/golang.org/x/crypto/ocsp/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( ocsp.go diff --git a/vendor/golang.org/x/crypto/pbkdf2/gotest/ya.make b/vendor/golang.org/x/crypto/pbkdf2/gotest/ya.make index e14c048ed..e2da0456d 100644 --- a/vendor/golang.org/x/crypto/pbkdf2/gotest/ya.make +++ b/vendor/golang.org/x/crypto/pbkdf2/gotest/ya.make @@ -2,6 +2,6 @@ GO_TEST_FOR(vendor/golang.org/x/crypto/pbkdf2) LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) END() diff --git a/vendor/golang.org/x/crypto/pbkdf2/ya.make b/vendor/golang.org/x/crypto/pbkdf2/ya.make index 3598a7b22..0c1ba119c 100644 --- a/vendor/golang.org/x/crypto/pbkdf2/ya.make +++ b/vendor/golang.org/x/crypto/pbkdf2/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( pbkdf2.go diff --git a/vendor/golang.org/x/crypto/scrypt/ya.make b/vendor/golang.org/x/crypto/scrypt/ya.make index 59a52cb84..5e20fa7c1 100644 --- a/vendor/golang.org/x/crypto/scrypt/ya.make +++ b/vendor/golang.org/x/crypto/scrypt/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( scrypt.go diff --git a/vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/ya.make b/vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/ya.make index 5254945c1..95855a226 100644 --- a/vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/ya.make +++ b/vendor/golang.org/x/crypto/ssh/internal/bcrypt_pbkdf/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( bcrypt_pbkdf.go diff --git a/vendor/golang.org/x/crypto/ssh/ya.make b/vendor/golang.org/x/crypto/ssh/ya.make index a460bb978..1930c798e 100644 --- a/vendor/golang.org/x/crypto/ssh/ya.make +++ b/vendor/golang.org/x/crypto/ssh/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.31.0) +VERSION(v0.32.0) SRCS( buffer.go diff --git a/vendor/golang.org/x/net/http/httpguts/ya.make b/vendor/golang.org/x/net/http/httpguts/ya.make index 1bd5c0bf5..a85adb57f 100644 --- a/vendor/golang.org/x/net/http/httpguts/ya.make +++ b/vendor/golang.org/x/net/http/httpguts/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( guts.go diff --git a/vendor/golang.org/x/net/http2/config.go b/vendor/golang.org/x/net/http2/config.go index de58dfb8d..ca645d9a1 100644 --- a/vendor/golang.org/x/net/http2/config.go +++ b/vendor/golang.org/x/net/http2/config.go @@ -60,7 +60,7 @@ func configFromServer(h1 *http.Server, h2 *Server) http2Config { return conf } -// configFromServer merges configuration settings from h2 and h2.t1.HTTP2 +// configFromTransport merges configuration settings from h2 and h2.t1.HTTP2 // (the net/http Transport). func configFromTransport(h2 *Transport) http2Config { conf := http2Config{ diff --git a/vendor/golang.org/x/net/http2/h2c/ya.make b/vendor/golang.org/x/net/http2/h2c/ya.make index a0b20b305..712f84b35 100644 --- a/vendor/golang.org/x/net/http2/h2c/ya.make +++ b/vendor/golang.org/x/net/http2/h2c/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( h2c.go diff --git a/vendor/golang.org/x/net/http2/h2i/ya.make b/vendor/golang.org/x/net/http2/h2i/ya.make index c87e8a9de..158af6386 100644 --- a/vendor/golang.org/x/net/http2/h2i/ya.make +++ b/vendor/golang.org/x/net/http2/h2i/ya.make @@ -2,7 +2,7 @@ GO_PROGRAM() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( h2i.go diff --git a/vendor/golang.org/x/net/http2/hpack/ya.make b/vendor/golang.org/x/net/http2/hpack/ya.make index bd80063f2..6552d00a2 100644 --- a/vendor/golang.org/x/net/http2/hpack/ya.make +++ b/vendor/golang.org/x/net/http2/hpack/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( encode.go diff --git a/vendor/golang.org/x/net/http2/transport.go b/vendor/golang.org/x/net/http2/transport.go index 090d0e1bd..b2e2ed337 100644 --- a/vendor/golang.org/x/net/http2/transport.go +++ b/vendor/golang.org/x/net/http2/transport.go @@ -375,6 +375,7 @@ type ClientConn struct { doNotReuse bool // whether conn is marked to not be reused for any future requests closing bool closed bool + closedOnIdle bool // true if conn was closed for idleness seenSettings bool // true if we've seen a settings frame, false otherwise seenSettingsChan chan struct{} // closed when seenSettings is true or frame reading fails wantSettingsAck bool // we sent a SETTINGS frame and haven't heard back @@ -1089,10 +1090,12 @@ func (cc *ClientConn) idleStateLocked() (st clientConnIdleState) { // If this connection has never been used for a request and is closed, // then let it take a request (which will fail). + // If the conn was closed for idleness, we're racing the idle timer; + // don't try to use the conn. (Issue #70515.) // // This avoids a situation where an error early in a connection's lifetime // goes unreported. - if cc.nextStreamID == 1 && cc.streamsReserved == 0 && cc.closed { + if cc.nextStreamID == 1 && cc.streamsReserved == 0 && cc.closed && !cc.closedOnIdle { st.canTakeNewRequest = true } @@ -1155,6 +1158,7 @@ func (cc *ClientConn) closeIfIdle() { return } cc.closed = true + cc.closedOnIdle = true nextID := cc.nextStreamID // TODO: do clients send GOAWAY too? maybe? Just Close: cc.mu.Unlock() @@ -2434,9 +2438,12 @@ func (rl *clientConnReadLoop) cleanup() { // This avoids a situation where new connections are constantly created, // added to the pool, fail, and are removed from the pool, without any error // being surfaced to the user. - const unusedWaitTime = 5 * time.Second + unusedWaitTime := 5 * time.Second + if cc.idleTimeout > 0 && unusedWaitTime > cc.idleTimeout { + unusedWaitTime = cc.idleTimeout + } idleTime := cc.t.now().Sub(cc.lastActive) - if atomic.LoadUint32(&cc.atomicReused) == 0 && idleTime < unusedWaitTime { + if atomic.LoadUint32(&cc.atomicReused) == 0 && idleTime < unusedWaitTime && !cc.closedOnIdle { cc.idleTimer = cc.t.afterFunc(unusedWaitTime-idleTime, func() { cc.t.connPool().MarkDead(cc) }) diff --git a/vendor/golang.org/x/net/http2/ya.make b/vendor/golang.org/x/net/http2/ya.make index 46f3c79df..95a72f5ca 100644 --- a/vendor/golang.org/x/net/http2/ya.make +++ b/vendor/golang.org/x/net/http2/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( ascii.go diff --git a/vendor/golang.org/x/net/idna/ya.make b/vendor/golang.org/x/net/idna/ya.make index 09b2ffd25..a9283884a 100644 --- a/vendor/golang.org/x/net/idna/ya.make +++ b/vendor/golang.org/x/net/idna/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( go118.go diff --git a/vendor/golang.org/x/net/internal/socks/ya.make b/vendor/golang.org/x/net/internal/socks/ya.make index b4a6b2ca4..14195ce35 100644 --- a/vendor/golang.org/x/net/internal/socks/ya.make +++ b/vendor/golang.org/x/net/internal/socks/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( client.go diff --git a/vendor/golang.org/x/net/internal/timeseries/ya.make b/vendor/golang.org/x/net/internal/timeseries/ya.make index e59398a0e..f93d10b30 100644 --- a/vendor/golang.org/x/net/internal/timeseries/ya.make +++ b/vendor/golang.org/x/net/internal/timeseries/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( timeseries.go diff --git a/vendor/golang.org/x/net/proxy/ya.make b/vendor/golang.org/x/net/proxy/ya.make index f2de5c33b..ca3947837 100644 --- a/vendor/golang.org/x/net/proxy/ya.make +++ b/vendor/golang.org/x/net/proxy/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( dial.go diff --git a/vendor/golang.org/x/net/publicsuffix/ya.make b/vendor/golang.org/x/net/publicsuffix/ya.make index 6fc8825cc..961fd1ba9 100644 --- a/vendor/golang.org/x/net/publicsuffix/ya.make +++ b/vendor/golang.org/x/net/publicsuffix/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( list.go diff --git a/vendor/golang.org/x/net/trace/ya.make b/vendor/golang.org/x/net/trace/ya.make index ff70958d4..032684f2f 100644 --- a/vendor/golang.org/x/net/trace/ya.make +++ b/vendor/golang.org/x/net/trace/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.33.0) +VERSION(v0.34.0) SRCS( events.go diff --git a/vendor/golang.org/x/sys/cpu/gotest/ya.make b/vendor/golang.org/x/sys/cpu/gotest/ya.make index be3351ef8..7ca577893 100644 --- a/vendor/golang.org/x/sys/cpu/gotest/ya.make +++ b/vendor/golang.org/x/sys/cpu/gotest/ya.make @@ -2,6 +2,6 @@ GO_TEST_FOR(vendor/golang.org/x/sys/cpu) LICENSE(BSD-3-Clause) -VERSION(v0.28.0) +VERSION(v0.29.0) END() diff --git a/vendor/golang.org/x/sys/cpu/ya.make b/vendor/golang.org/x/sys/cpu/ya.make index e0736ade9..afba9ebb3 100644 --- a/vendor/golang.org/x/sys/cpu/ya.make +++ b/vendor/golang.org/x/sys/cpu/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.28.0) +VERSION(v0.29.0) SRCS( byteorder.go diff --git a/vendor/golang.org/x/sys/unix/dup3_test.go b/vendor/golang.org/x/sys/unix/dup3_test.go index 9201e3558..12baf1262 100644 --- a/vendor/golang.org/x/sys/unix/dup3_test.go +++ b/vendor/golang.org/x/sys/unix/dup3_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build freebsd || linux || netbsd || openbsd +//go:build dragonfly || freebsd || linux || netbsd || openbsd package unix_test @@ -16,7 +16,7 @@ import ( ) func TestDup3(t *testing.T) { - tempFile, err := os.Create(filepath.Join(t.TempDir(), "TestDup")) + tempFile, err := os.Create(filepath.Join(t.TempDir(), "TestDup3")) if err != nil { t.Fatal(err) } diff --git a/vendor/golang.org/x/sys/unix/gotest/ya.make b/vendor/golang.org/x/sys/unix/gotest/ya.make index 172962352..ef4d99141 100644 --- a/vendor/golang.org/x/sys/unix/gotest/ya.make +++ b/vendor/golang.org/x/sys/unix/gotest/ya.make @@ -2,7 +2,7 @@ GO_TEST_FOR(vendor/golang.org/x/sys/unix) LICENSE(BSD-3-Clause) -VERSION(v0.28.0) +VERSION(v0.29.0) DATA( arcadia/vendor/golang.org/x/sys/unix diff --git a/vendor/golang.org/x/sys/unix/internal/mkmerge/gotest/ya.make b/vendor/golang.org/x/sys/unix/internal/mkmerge/gotest/ya.make index fafc7a367..f7425bd6b 100644 --- a/vendor/golang.org/x/sys/unix/internal/mkmerge/gotest/ya.make +++ b/vendor/golang.org/x/sys/unix/internal/mkmerge/gotest/ya.make @@ -2,6 +2,6 @@ GO_TEST_FOR(vendor/golang.org/x/sys/unix/internal/mkmerge) LICENSE(BSD-3-Clause) -VERSION(v0.28.0) +VERSION(v0.29.0) END() diff --git a/vendor/golang.org/x/sys/unix/internal/mkmerge/ya.make b/vendor/golang.org/x/sys/unix/internal/mkmerge/ya.make index bfdf4bb1c..cd550bb16 100644 --- a/vendor/golang.org/x/sys/unix/internal/mkmerge/ya.make +++ b/vendor/golang.org/x/sys/unix/internal/mkmerge/ya.make @@ -2,7 +2,7 @@ GO_PROGRAM() LICENSE(BSD-3-Clause) -VERSION(v0.28.0) +VERSION(v0.29.0) SRCS( mkmerge.go diff --git a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go index 97cb916f2..be8c00207 100644 --- a/vendor/golang.org/x/sys/unix/syscall_dragonfly.go +++ b/vendor/golang.org/x/sys/unix/syscall_dragonfly.go @@ -246,6 +246,18 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e return sendfile(outfd, infd, offset, count) } +func Dup3(oldfd, newfd, flags int) error { + if oldfd == newfd || flags&^O_CLOEXEC != 0 { + return EINVAL + } + how := F_DUP2FD + if flags&O_CLOEXEC != 0 { + how = F_DUP2FD_CLOEXEC + } + _, err := fcntl(oldfd, how, newfd) + return err +} + /* * Exposed directly */ diff --git a/vendor/golang.org/x/sys/unix/ya.make b/vendor/golang.org/x/sys/unix/ya.make index f8b250e93..4361b87f2 100644 --- a/vendor/golang.org/x/sys/unix/ya.make +++ b/vendor/golang.org/x/sys/unix/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.28.0) +VERSION(v0.29.0) BUILD_ONLY_IF( WARNING diff --git a/vendor/golang.org/x/term/ya.make b/vendor/golang.org/x/term/ya.make index 5194b13af..d4a2fa811 100644 --- a/vendor/golang.org/x/term/ya.make +++ b/vendor/golang.org/x/term/ya.make @@ -2,7 +2,7 @@ GO_LIBRARY() LICENSE(BSD-3-Clause) -VERSION(v0.27.0) +VERSION(v0.28.0) SRCS( term.go