ensure the max_idle_time is instance of float