Update moby/spdystream to v0.4.0

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2024-06-27 13:07:47 -04:00
parent 41f21823f5
commit 377a3f7ec4
38 changed files with 53 additions and 60 deletions

View File

@@ -740,16 +740,14 @@ func (s *Connection) shutdown(closeTimeout time.Duration) {
if err != nil {
duration := 10 * time.Minute
time.AfterFunc(duration, func() {
select {
case err, ok := <-s.shutdownChan:
if ok {
debugMessage("Unhandled close error after %s: %s", duration, err)
}
default:
}
})
s.shutdownChan <- err
timer := time.NewTimer(duration)
defer timer.Stop()
select {
case s.shutdownChan <- err:
// error was handled
case <-timer.C:
debugMessage("Unhandled close error after %s: %s", duration, err)
}
}
close(s.shutdownChan)
}

2
vendor/modules.txt vendored
View File

@@ -422,7 +422,7 @@ github.com/mitchellh/go-wordwrap
# github.com/moby/ipvs v1.1.0
## explicit; go 1.17
github.com/moby/ipvs
# github.com/moby/spdystream v0.3.0
# github.com/moby/spdystream v0.4.0
## explicit; go 1.13
github.com/moby/spdystream
github.com/moby/spdystream/spdy