fix to warn too many num_threads for connection numbers