def METHOD_NAME(self, conn: ConnectionType) -> None:
    """Set an expiry date on a connection.
    Add some randomness to avoid mass reconnection.
    """
    conn._expire_at = monotonic() + self._jitter(self.max_lifetime, -0.05, 0.0)