libdbus, gdbus, p2p-gdbus: Add flushing connection after send 10/270510/1
authorAdam Michalski <a.michalski2@partner.samsung.com>
Thu, 3 Feb 2022 17:09:28 +0000 (18:09 +0100)
committerAdam Michalski <a.michalski2@partner.samsung.com>
Thu, 3 Feb 2022 17:09:28 +0000 (18:09 +0100)
commit300a6db75f8074a935ca6665478f1ebf97a86e8d
tree461f1844906a1c09cf2e864f046f8da2f7714c26
parentaa47f63d0fb3ddb2e24f5b17b7da7d49d2b99a3b
libdbus, gdbus, p2p-gdbus: Add flushing connection after send

Added flushing connection, that writes all queued outgoing messages to
the transport. Without flushing the connection, there is no guarantee
that messages have been sent to the networking buffers in the kernel
before the server sends the messages asynchronously and then exits
immediately.
It also prevents latencies from stacking during measurements under
heavy load.

Change-Id: I5383f0bb4e32c91542c887f2e55eb7bdd030d738
benchmark/gdbus.c
benchmark/libdbus.c
benchmark/p2p-gdbus.c