From: Lennart Poettering <lennart@poettering.net>
Date: Thu, 5 May 2016 12:59:52 +0200
Subject: [PATCH] bus: fix in-flight fd counting logic
When a busy connection manages to always keep an fd queued, but still is
processing messages, then this might cause dbus connection to kick it
from the bus anyway, because the number of queued fds never goes down to
zero.
This patch changes that, and resets the in-flight timer each time any
change on the fd queue is made, and thus is not stuck or stale.
This also adds a log message whenever the fd-in-flight timer hits, since
the timer elapsing should usually be a very exceptional condition, and a
clear indication of a bug or attack somewhere.
https://bugs.freedesktop.org/show_bug.cgi?id=95263
https://github.com/systemd/systemd/issues/1961
---
bus/connection.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)