Fix keep alive if exceeding configured max