mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-30 07:46:41 -04:00
delay close of expired connections
This commit is contained in:
parent
73c17d9931
commit
c26f081101
@ -42,7 +42,7 @@ func (this *InboundDetourHandlerDynamic) refresh() error {
|
||||
|
||||
this.ich2Recycle = this.ichInUse
|
||||
if this.ich2Recycle != nil {
|
||||
time.AfterFunc(10*time.Second, func() {
|
||||
time.AfterFunc(time.Minute, func() {
|
||||
for _, ich := range this.ich2Recycle {
|
||||
if ich != nil {
|
||||
ich.handler.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user