mbox series

[BlueZ,0/4] Put safeguards around Leave call

Message ID 20200609035909.51061-1-inga.stotland@intel.com (mailing list archive)
Headers show
Series Put safeguards around Leave call | expand

Message

Stotland, Inga June 9, 2020, 3:59 a.m. UTC
This set of patches addresses the situation when an application
calls Leave() method on a node that has another incomplete
method call on Network interface associated with it.

The simple solution is to return error in response to Leave() method
if an application still owes the daemon either a reply to GetManagedObjects
request in case of Attach() or a reply to JoinComplete() in case of
Join(), Create() or Import()

Inga Stotland (4):
  mesh: Make "Busy" and "InProgress" to be distinct errors
  mesh: Add destroy callback to dbus_send_with_timeout()
  mesh: Add timeout to a get managed objects call
  mesh: Add "node is busy" check for Leave() method

 doc/mesh-api.txt |  4 +++-
 mesh/dbus.c      | 14 +++++++----
 mesh/dbus.h      |  1 +
 mesh/error.h     |  1 +
 mesh/manager.c   | 11 ++++-----
 mesh/mesh.c      | 17 +++++++------
 mesh/node.c      | 62 +++++++++++++++++++++++++++++-------------------
 mesh/node.h      |  2 +-
 8 files changed, 68 insertions(+), 44 deletions(-)