mirror of https://github.com/v2ray/v2ray-core
KCP: delay conn close to prevent conn leak+
parent
9144b66217
commit
29e9473026
|
@ -74,7 +74,7 @@ type KCPVconn struct {
|
|||
conntokeep time.Time
|
||||
}
|
||||
|
||||
var counter int
|
||||
//var counter int
|
||||
|
||||
func (kcpvc *KCPVconn) Read(b []byte) (int, error) {
|
||||
ifb := time.Now().Add(time.Duration(kcpvc.conf.AdvancedConfigs.ReadTimeout) * time.Second)
|
||||
|
|
Loading…
Reference in New Issue