mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
KCP: delay conn close to prevent conn leak+
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user