3 ms·
> I needed lots and lots of OS file descriptors Why? I ask because I wrote a port scanner professionally once, and I got away with using one fd for network I/
by sebcat 12y ago
> I needed lots and lots of OS file descriptors
Why?
I ask because I wrote a port scanner professionally once, and I got away with using one fd for network I/O. I can only think of one case where you end up using a lot of fds and that is if you're using TCP sockets and connect(2) where you'd end up with one fd/tested port, and that's not good.
- tptacek 12y agoIt had to work unprivileged in userland.