correctly set idle-timeout