1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-28 18:25:23 +00:00

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
No known key found for this signature in database
GPG Key ID: 7791BDB0709ABD21

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)