summaryrefslogtreecommitdiffstats
path: root/avahi-core/multicast-lookup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-13 16:36:33 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-13 16:36:33 +0000
commitda75d1898a45c106a994cd87f8da5b6bcb2b6450 (patch)
tree2c0016b9908d4f3816e3c5ee609a12292423293a /avahi-core/multicast-lookup.c
parentc9d4620346b561e7eac4c04c070351710f195acc (diff)
* Make "NameAcquired" warning line disappear in avahi-client
Scheduler tweaks: * Add some more comments * Remove scheduled queries from the query queue if the querier which issued them dies. This reduces traffic immensly when many short lived queries are made, e.g. during host name lookups. * Don't free a querier object immediately when it is no longer referenced. Instead keep it and try to recycle it in case someone else wants to do the same query later on. Free it at the latest moment possible: just before the next query is scheduled to be made. This reduces traffic immensly when many short lived queries are made. With these two changes we can minimize the traffic to zero or near zero for many simple lookups. * When responding records with the FLUSH_CACHE bit set, reply immediately only when all response record have this bit set. Prior to this change we replied imediately as soon as one record hat this bit set. This change should make us pass *all* Bonjour mDNS conformance tests without any exceptions. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@954 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/multicast-lookup.c')
-rw-r--r--avahi-core/multicast-lookup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-core/multicast-lookup.c b/avahi-core/multicast-lookup.c
index fa8c859..8101df5 100644
--- a/avahi-core/multicast-lookup.c
+++ b/avahi-core/multicast-lookup.c
@@ -114,9 +114,10 @@ AvahiMulticastLookup *avahi_multicast_lookup_new(
avahi_querier_add_for_all(e->server, interface, protocol, l->key, &tv);
l->queriers_added = 1;
- /* add a second */
+ /* Add a second */
avahi_timeval_add(&tv, 1000000);
+ /* Issue the ALL_FOR_NOW event one second after the querier was initially created */
l->all_for_now_event = avahi_time_event_new(e->server->time_event_queue, &tv, all_for_now_callback, l);
return l;