mirror of https://github.com/v2ray/v2ray-core
delay close of expired connections
parent
73c17d9931
commit
c26f081101
|
@ -42,7 +42,7 @@ func (this *InboundDetourHandlerDynamic) refresh() error {
|
||||||
|
|
||||||
this.ich2Recycle = this.ichInUse
|
this.ich2Recycle = this.ichInUse
|
||||||
if this.ich2Recycle != nil {
|
if this.ich2Recycle != nil {
|
||||||
time.AfterFunc(10*time.Second, func() {
|
time.AfterFunc(time.Minute, func() {
|
||||||
for _, ich := range this.ich2Recycle {
|
for _, ich := range this.ich2Recycle {
|
||||||
if ich != nil {
|
if ich != nil {
|
||||||
ich.handler.Close()
|
ich.handler.Close()
|
||||||
|
|
Loading…
Reference in New Issue