[avahi] [PATCH] Cleanup fixes

Patrick patrick at motec.com.au
Tue Apr 21 21:16:33 PDT 2009


Hi,

Attached is a patch which fixes two issues in the avahi server.

1. is_duplicate_entry was matching against a dead entries. This causes 
problems where goodbyes are sometimes not sent because we (incorrectly) 
thought there was a duplicate entry.
2. avahi_s_entry_group_free and avahi_s_entry_group_reset now call 
avahi_cleanup_dead_entries because it can be a long time before the 
cleanup is triggered from a mcast_socket_event or 
legacy_unicast_socket_event. This causes excessive memory usage in some 
situations.

I have also removed the cleanup_dead function from avahi-core/server.c 
and replaced calls to it with avahi_cleanup_dead_entries as 
avahi_cleanup_dead_entries already calls avahi_browser_cleanup. The 
extra function call was redundant.

Thanks,

-Patrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-cleanup-bugs.patch
Type: text/x-patch
Size: 2236 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/avahi/attachments/20090422/036ed4fe/attachment.bin 


More information about the avahi mailing list