diff options
| author | bitflash <admin@bitflash.network> | 2026-08-18 10:04:28 -0300 |
|---|---|---|
| committer | bitflash <admin@bitflash.network> | 2026-08-18 10:04:28 -0300 |
| commit | db84acfc5f99ac1ddf4962879b4cbaf1af9952dd (patch) | |
| tree | ca7e4c67216880361dfd484c27fbf7b8c9d2d269 /src/imgui/imgui_draw.cpp | |
| parent | a6eb8dab830be3135c054ae3ae442886f1867b4e (diff) | |
net: cap inbound connections per address
A single IP could hold every inbound slot up to MAX_CONNECTIONS -- which
is what a connection-exhaustion flood did to the rendezvous relays, one
address parking hundreds of sockets and starving real peers. Add
MAX_CONNECTIONS_PER_IP (32): the accept path counts existing connections
from the same address and refuses a new one past the cap. The relays'
firewall connlimit does the same a layer lower; this makes every build
carry the defense, including future poll()-based relays with no FD ceiling.
Diffstat (limited to 'src/imgui/imgui_draw.cpp')
0 files changed, 0 insertions, 0 deletions