Allow socket pool size randomization for proxies
Explanation
Socket pool size randomization is a security mechanism that prevents attackers from exploiting deterministic capacity limits to learn cross-site information.
If the capacity for a pool is normally 128 sockets, this mechanism randomly caps the pool between 128 and 256.
This can allow up to 2x as many connections to the proxy, but in practice the expected value is more like 1.2x.
This impacts the settings from MaxConnectionsPerProxy and MaxConnectionsPerProxyForWebSocket.
Instead of them defining the upper limit, the upper limit is 2x their values (though again, the expected value in practice is more like 1.2x them).
This is enabled by default for all pools, but this policy allows the feature to be disabled for proxy pools specifically.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\BraveSoftware\BraveHKEY_CURRENT_USER\Software\Policies\BraveSoftware\Brave- Value name
AllowSocketPoolSizeRandomizationForProxies
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: brave/AllowSocketPoolSizeRandomizationForProxies
$k = 'HKLM:\Software\Policies\BraveSoftware\Brave'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSocketPoolSizeRandomizationForProxies' -Value 1 -Type DWordDisable
# Disable: brave/AllowSocketPoolSizeRandomizationForProxies
$k = 'HKLM:\Software\Policies\BraveSoftware\Brave'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSocketPoolSizeRandomizationForProxies' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": brave/AllowSocketPoolSizeRandomizationForProxies
$k = 'HKLM:\Software\Policies\BraveSoftware\Brave'
Remove-ItemProperty -Path $k -Name 'AllowSocketPoolSizeRandomizationForProxies' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Application
Brave (Brave Software) — November 2026 templates
Official templates downloaded on November 12, 2026.