[avahi] Disappearing and reappearing service if a text is changed

Lennart Poettering lennart at poettering.net
Wed May 27 07:39:45 PDT 2009


On Wed, 27.05.09 15:42, Florian Erfurth (f.erfurth at reel-multimedia.com) wrote:

> >> avahithread.c(203): service REMOVE: service='Floh' type='_boxMySQL._tcp'
> >> domain='local'
> >> avahithread.c(195): NEW: service='Floh' type='_boxMySQL._tcp'
> >> domain='local'
> >>     
> > Seems like the servcie refresh packets didn't get through.
>
> So its not my fault (programming side)?

Dunno. I don't know your code.

> > The timeout is reached because we didn't get a reply in time. 
> >
> > You probably have some kind of packet loss on your network (or in the
> > local queuing).
> >   
> I don't think I'm loosing packets often here, but I'll test it. Can I 
> increase the timeout-value?

Sure. Check for the TIMEOUT_MSEC value in
avahi-core/resolve-host-name.c.

> > mDNS is not a reliable protocol, by design. You should not make
> > reliability assumptions it cannot provide.
> >   
> Sure... but is there any alternative for keeping a list of hosts and its 
> IPs? I think not.

Uh? Dunno what you want to do. But what you just said here sounds like
a pretty generic problem, which could be solves by DNS too, heck, even
a /etc/hosts file.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the avahi mailing list