Fix WriteValue timeout issue 24/309224/2 accepted/tizen/7.0/unified/20240409.073811 accepted/tizen/7.0/unified/20240409.104413
authorWootak Jung <wootak.jung@samsung.com>
Sun, 7 Apr 2024 23:18:17 +0000 (08:18 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Sun, 7 Apr 2024 23:41:14 +0000 (08:41 +0900)
commit9ceaa6b29b7c484fa8df19bd07228612bf65e7e4
treefd59699b026095d53b4169acbedde8c26ef7596b
parent05e53b93a8d5d4635d86401977d53a03a5d7c9a6
Fix WriteValue timeout issue

Apr 04 16:11:51.062065 Samsung-FamilyHub bluetoothd[6483]: src/gatt-database.c:pending_write_new() ### op 0xabccb558 attrib 0xabccd568 queue 0xabccf2e0 id 1
Apr 04 16:11:51.062329 Samsung-FamilyHub bluetoothd[6483]: src/gatt-database.c:send_write() ### op 0xabccb558 attrib 0xabccd568
// timeout occurs if no reply
Apr 04 16:16:51.064207 Samsung-FamilyHub bluetoothd[6483]: src/gatt-database.c:pending_op_free() op 0xabccb558

g_dbus_method_invocation_return_value:
 * if (error != NULL)
 *   g_dbus_method_invocation_return_gerror (invocation, error);
 * else
 *   g_dbus_method_invocation_return_value (invocation,
 *                                          g_variant_new ("(s)", result_string));
 *
 * // Do not free @invocation here; returning a value does that
 * ]|
 *
 * This method will take ownership of @invocation. See
 * #GDBusInterfaceVTable for more information about the ownership of
 * @invocation.

GDBusInterfaceVTable:
Ownership of the GDBusMethodInvocation object passed to the method_call() function
is transferred to your handler; you must call one of the methods of GDBusMethodInvocation
to return a reply (possibly empty), or an error.
These functions also take ownership of the passed-in invocation object,
so unless the invocation object has otherwise been referenced, it will be then be freed.

Change-Id: I389475519d912044bff5d98ceffa8064ec9012d3
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-server.c