KCP: delay conn close to prevent conn leak+

This commit is contained in:
Shelikhoo
2016-06-13 12:56:37 +08:00
parent 9144b66217
commit 29e9473026
+1 -1
View File
@@ -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)