aboutsummaryrefslogtreecommitdiff
path: root/guix/avahi.scm
Commit message (Collapse)AuthorAge
* avahi: Fix exception when #:timeout is #f.nathan2023-07-11
| | | | | | | * guix/avahi.scm (avahi-publish-service-thread): Fixes crash when timeout is #f, which is the default for "guix publish --advertise" Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* avahi: Poll less.Ludovic Courtès2023-07-07
| | | | | | | * guix/avahi.scm (avahi-publish-service-thread): Have #:timeout default to #f when 'stop-loop?' is NEVER, or 500ms. (avahi-browse-service-thread): #:timeout defaults to 500ms when 'stop-loop?' is provided.
* avahi: Resolve hosts for which name resolution fails.Ludovic Courtès2023-06-16
| | | | | | | | | | | This avoids attempts to connect to hosts that went off-line. This is particularly important for 'guix-daemon --discover', which would so far keep attempting to talk to LAN hosts after they vanished just because their mDNS record hasn't expired, leading to significant delays when fetching narinfos and substitutes. * guix/avahi.scm (avahi-browse-service-thread)[service-resolver-callback]: Add handler to RESOLVER-EVENT/FAILURE.
* avahi: Remove poll timeout when possible.Ludovic Courtès2020-12-20
| | | | | | | | | | Fixes <https://issues.guix.gnu.org/45314>. * guix/avahi.scm (avahi-browse-service-thread): Change timeout default value to false when no "stop-loop?" procedure is passed. Adapt "iterate-simple-poll" call accordingly. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
* avahi: Ignore local services.Mathieu Othacehe2020-12-10
| | | | | * guix/avahi.scm (avahi-browse-service-thread): Add "ignore-local?" argument and honor it.
* Add Avahi support.Mathieu Othacehe2020-11-29
* guix/avahi.scm: New file. * Makefile.am (MODULES): Add it. * configure.ac: Add Guile-Avahi dependency. * doc/guix.texi (Requirements): Document it. * gnu/packages/package-management.scm (guix)[native-inputs]: Add "guile-avahi", [propagated-inputs]: ditto. * guix/self.scm (specification->package): Add guile-avahi. (compiled-guix): Ditto.