Optimize RequestHandler socket accept function: accept only up to the number of current clients in order to avoid wasting time on accept() calls that may return EAGAIN.