spread N routines over n lanes

(cherry picked from commit 7043baeb34)
This commit is contained in:
JackDoan authored and Wade Simmons committed 2026-09-02 11:28:32 -04:00
1 parent 2c9f47c252
commit 192d994273
6 files changed
+96 -36

No files matched your search

+1 -1
View File
@@ -750,7 +750,7 @@ func (hm *HandshakeManager) maybeAllocLaneState(hostinfo *HostInfo, result *hand
if len(hm.f.myVpnAddrs) > 0 && len(hostinfo.vpnAddrs) > 0 {
offset = lanePortOffset(hm.f.myVpnAddrs[0], hostinfo.vpnAddrs[0], uint16(peerPorts))
}
hostinfo.lanes = newLaneState(hm.f.routines, uint16(peerPorts), uint16(result.PeerBasePort), offset)
hostinfo.lanes = newLaneState(hm.config.laneCount, uint16(peerPorts), uint16(result.PeerBasePort), offset)
}
// EnsureLanes starts lane handshakes for every empty, non-pending, retry-due