How can I limit the number of open AF_INET sockets?
- by Stefano Palazzo
Is there a way to limit the number of concurretly open AF_INET sockets (only)?
If so, how do I do it, and how will the networking behave if I'm above the limit?
For background: My cheap commodity router is a bit eager to detect 'syn flooding'. When it does, it crashes (and doesn't automatically restart itself). I'm thinking limiting concurrent connections to around 1000 should keep it from bickering.