Re:Ask HN: How to stop an AWS bot sending 2B requests/month
by kristianp on Friday October 17, 2025 @07:00PM
(#45623137)
Stupid question, won't that consume 7000 ports on your own box as well?
[ Parent
| on HN ]
Re:Ask HN: How to stop an AWS bot sending 2B requests/month
by Neywiny on Friday October 17, 2025 @07:28PM
(#45623360)
I think it'll eat 7000 connection objects, maybe threads, but they'll all be on port 80 or 443? So if you can keep the overhead of each connection down, presumably easy because you don't need it to be fast, it'll be fine
Re:Ask HN: How to stop an AWS bot sending 2B requests/month
by kijin on Friday October 17, 2025 @07:40PM
(#45623415)
Each TCP connection requires a unique combination of (server port, client port). Your server port is fixed: 80 or 443. They need to use a new ephemeral port for each connection.
You will have 7000 sockets (file descriptors), but that's much more manageable than 7000 ports.
Re:Ask HN: How to stop an AWS bot sending 2B requests/month
by swiftcoder on Saturday October 18, 2025 @10:58AM
(#45627908)
7000 sockets, at any rate, but provided you've anticipated the need, this isn't challenging to support (and nginx is very good at handling large numbers of open sockets)