There is a slight chance that active_cconnects could exceed the number of workers, making the unit test stuck.