KCP: delay conn close to prevent conn leak+

pull/170/head
Shelikhoo 2016-06-13 12:56:37 +08:00
parent 9144b66217
commit 29e9473026
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21
1 changed files with 1 additions and 1 deletions

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)