1
0
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:
v2ray 2016-01-22 22:17:50 +01:00
parent 73c17d9931
commit c26f081101

View File

@ -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()