diff --git a/go.mod b/go.mod index c0e1e5f24..c146b20ab 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/google/gopacket v1.1.17 // indirect github.com/pkg/errors v0.9.1 github.com/urfave/cli v1.21.0 - github.com/xtaci/kcp-go/v5 v5.5.16 + github.com/xtaci/kcp-go/v5 v5.5.17 github.com/xtaci/smux v1.5.14 github.com/xtaci/tcpraw v1.2.25 golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de diff --git a/go.sum b/go.sum index 6ba252d88..6bc264365 100644 --- a/go.sum +++ b/go.sum @@ -24,8 +24,8 @@ github.com/tjfoc/gmsm v1.3.2 h1:7JVkAn5bvUJ7HtU08iW6UiD+UTmJTIToHCfeFzkcCxM= github.com/tjfoc/gmsm v1.3.2/go.mod h1:HaUcFuY0auTiaHB9MHFGCPx5IaLhTUd2atbCFBQXn9w= github.com/urfave/cli v1.21.0 h1:wYSSj06510qPIzGSua9ZqsncMmWE3Zr55KBERygyrxE= github.com/urfave/cli v1.21.0/go.mod h1:lxDj6qX9Q6lWQxIrbrT0nwecwUtRnhVZAJjJZrVUZZQ= -github.com/xtaci/kcp-go/v5 v5.5.16 h1:doQfgOdghnuqnOxsr1fR5kWTxV/X15bUKQXMc11uiOU= -github.com/xtaci/kcp-go/v5 v5.5.16/go.mod h1:pVx3jb4LT5edTmPayc77tIU9nRsjGck8wep5ZV/RBO0= +github.com/xtaci/kcp-go/v5 v5.5.17 h1:bkdaqtER0PMlP05BBHfu6W+71kt/NwbAk93KH7F78Ck= +github.com/xtaci/kcp-go/v5 v5.5.17/go.mod h1:pVx3jb4LT5edTmPayc77tIU9nRsjGck8wep5ZV/RBO0= github.com/xtaci/lossyconn v0.0.0-20190602105132-8df528c0c9ae h1:J0GxkO96kL4WF+AIT3M4mfUVinOCPgf2uUWYFUzN0sM= github.com/xtaci/lossyconn v0.0.0-20190602105132-8df528c0c9ae/go.mod h1:gXtu8J62kEgmN++bm9BVICuT/e8yiLI2KFobd/TRFsE= github.com/xtaci/smux v1.5.14 h1:1j+zJYDZRv9FHaWqCJfH5RPizIm0fSzJIFbfVn8zsfg= diff --git a/vendor/github.com/xtaci/kcp-go/v5/sess.go b/vendor/github.com/xtaci/kcp-go/v5/sess.go index cd02163c9..e5ada2bca 100644 --- a/vendor/github.com/xtaci/kcp-go/v5/sess.go +++ b/vendor/github.com/xtaci/kcp-go/v5/sess.go @@ -858,11 +858,11 @@ func (l *Listener) notifyReadError(err error) { close(l.chSocketReadError) // propagate read error to all sessions - l.sessionLock.Lock() + l.sessionLock.RLock() for _, s := range l.sessions { s.notifyReadError(err) } - l.sessionLock.Unlock() + l.sessionLock.RUnlock() }) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 485dce597..038607c7b 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -38,7 +38,7 @@ github.com/tjfoc/gmsm/sm4 # github.com/urfave/cli v1.21.0 ## explicit github.com/urfave/cli -# github.com/xtaci/kcp-go/v5 v5.5.16 +# github.com/xtaci/kcp-go/v5 v5.5.17 ## explicit github.com/xtaci/kcp-go/v5 # github.com/xtaci/smux v1.5.14