mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
KCP: delay conn close to prevent conn leak+
This commit is contained in:
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
Block a user