I've had such a behaviour with an HTTP reverse proxy I wrote, until I
realized that when you have thousands of connections, the select() call
slows down a bit, and the accept() was not called often enough to catch
all the new connections. I simply solved the problem by calling as many
accept() as possible each time the listen socket wakes up. I'm pretty
sure you are in such a situation.
Cheers,
Willy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/