Explorar el Código

Set reuse limit

Shelikhoo hace 9 años
padre
commit
2209294dfc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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