* BUG: LE adv manager may miss DBus client disconnection
@ 2015-07-22 17:48 Andrejs Hanins
0 siblings, 0 replies; only message in thread
From: Andrejs Hanins @ 2015-07-22 17:48 UTC (permalink / raw)
To: jamuraa, Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hi,
LE adv manager is supposed to clear advertisements when the DBus client, which did the registration, is disconnected. However, client_disconnect_cb() from advertising.c is not called if DBus client calls RegisterAdvertisement DBus method and then immediately exits (like exit(0)). Next time, the client gets "Maximum advertisements reached" error and is unable to register advertisements until bluetooth daemon is restarted. Obviously, it shouldn't matter for BlueZ daemon whether client terminates gracefully or not. It might be related to some mistake in refcount handling of DBusClient in advertisement code, but I'm not really sure.
Bluez 5.32 + Linux 4.1.2 used.
BR, Andrey
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-22 17:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 17:48 BUG: LE adv manager may miss DBus client disconnection Andrejs Hanins
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.