Net::Server::Thread versions through 2.018 for Perl start a handler thread for every connection regardless of max_servers and exit when thread creation fails
Net::Server::Thread versions through 2.018 for Perl start a handler thread for every connection regardless of max_servers and exit when thread creation fails. The accept loop waits while threads->list() exceeds max_servers, but each handler thread is detached as soon as it is created, and threads->list() does not count detached threads. The count stays near zero, so the limit never applies. When thread creation fails, the loop calls detach on an undefined value and dies. A remote client that holds connections open makes the server clone a Perl interpreter for each one until memory or thread limits are reached, and the server process then exits.