浏览代码

Set reuse limit

Shelikhoo 9 年之前
父节点
当前提交
2209294dfc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      transport/internet/ws/connection_cache.go

+ 1 - 1
transport/internet/ws/connection_cache.go

@@ -67,7 +67,7 @@ func (this *ConnectionCache) Recycle(dest string, conn *wsconn) {
 
 	aconn := &AwaitingConnection{
 		conn:   conn,
-		expire: time.Now().Add(time.Second * 180),
+		expire: time.Now().Add(time.Second * 7),
 	}
 
 	var list []*AwaitingConnection