Skip to content

gdbusproxy: Add G_DBUS_PROXY_FLAGS_NO_MATCH_RULE flag

Philip Withnall requested to merge 1109-no-match-rule into main

D-Bus has an upper limit on number of Match rules and it's rather easy to hit with a big number of proxies with signal subscriptions. This happens with NetworkManager with hundreds of devices or connection settings. By passing G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE to g_dbus_connection_signal_subscribe(), the user can call AddMatch with a less granular match instead of a match per every proxy.

Tests subsequently added by Philip Withnall.

Fixes: #1109 (closed)

Edited by Philip Withnall

Merge request reports