|
|
@@ -683,7 +683,7 @@ loop:
|
|
|
// Clear the reference to this discarded tunnel and immediately run
|
|
|
// a garbage collection to reclaim its memory.
|
|
|
connectedTunnel = nil
|
|
|
- aggressiveGarbageCollection()
|
|
|
+ defaultGarbageCollection()
|
|
|
|
|
|
// Skip the rest of this case
|
|
|
break
|
|
|
@@ -1392,7 +1392,7 @@ loop:
|
|
|
|
|
|
// ConnectTunnel will allocate significant memory, so first attempt to
|
|
|
// reclaim as much as possible.
|
|
|
- aggressiveGarbageCollection()
|
|
|
+ defaultGarbageCollection()
|
|
|
|
|
|
// Select the tunnel protocol. Unless config.TunnelProtocol is set, the
|
|
|
// selection will be made at random from protocols supported by the
|
|
|
@@ -1484,8 +1484,7 @@ loop:
|
|
|
if err != nil {
|
|
|
tunnel = nil
|
|
|
}
|
|
|
-
|
|
|
- aggressiveGarbageCollection()
|
|
|
+ defaultGarbageCollection()
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
@@ -1517,7 +1516,7 @@ loop:
|
|
|
// Clear the reference to this discarded tunnel and immediately run
|
|
|
// a garbage collection to reclaim its memory.
|
|
|
tunnel = nil
|
|
|
- aggressiveGarbageCollection()
|
|
|
+ defaultGarbageCollection()
|
|
|
}
|
|
|
|
|
|
// Unblock other candidates only after delivering when
|