Solving the 1 Billion Concurrent Connections (C1B) Problem On My Laptop
0 comments · networking
- Comments3
0 comments · networking
Story details from Lobsters ↗ · linked article on kyle.cascade.family.
Solving the 1 Billion Concurrent Connections (C1B) Problem On My Laptop was first seen by Trendoday on Dec 3, 2026. Since then it has appeared in 69 checks on 2 different days. It reached #4 on Lobsters · Hottest on Dec 3, 2026 UTC. It was last seen on Lobsters · Hottest on Dec 4, 17:53 UTC.
Position on Lobsters · Hottest at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Lobsters.
A few top-level comments from Lobsters, shortened. Read the full thread on Lobsters.
I did some measuring with HAProxy yesterday and TLS and HTTP/2 really put a dent into how many connections you can keep open. The RAM can easily become a problem.
Here's an idea on how you can save 3 (or 6) bytes for the sequence numbers: * When a new connection is established, do some hmac or something of the client address to derive an initial sequence number. * Pad each packet with whitespace so every packet is the same size, store the number of packets sent in the state…
This doesn't have buffers, so can this do TCP retransmission? I suppose it could just recreate the data instead, maybe. But surely without storing an ACK number, or some other trick, you can't detect the need for retransmission at scale. If not, what's the point in using TCP? (Targeting a web browser?) Just use UDP…
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. Its last recorded appearance was on Dec 4, 17:53 UTC.
#4 on Dec 3, 2026 UTC.
It was first seen on Dec 3, 2026 and has been on the list on 2 days (69 checks) since.