Skip to content

Reuse avahi contexts when possible #1862

Closed

Description

@mwleeds

@alexlarsson pointed out that flatpak should try to re-use avahi contexts when possible because we don't want to clear the cache and ping hosts on the network for every call to ostree_repo_find_remotes_async (if that's what we're currently doing).

Activity

  1. mwleeds commented on Sep 19, 2019

    @mwleeds
    ContributorAuthor

    It might make sense to change the libostree API to make passing in our own OstreeRepoFinderAvahi object unnecessary (by adding an option to specify which finders to use), and then implement caching of the avahi context in libostree.

    It might also make sense to do something similar for OstreeRepoFinderMount; maybe it could cache the GVolumeMonitor if g_volume_monitor_get() is an expensive operation.

  2. mwleeds commented on Mar 26, 2020

    @mwleeds
    ContributorAuthor

    This issue is still a valid possible improvement for libostree, but not part of the current plans for LAN updates: #3476 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions