Blame SOURCES/0022-rh1268030-vpn-plugin-timeout.patch

ab7d06
From f7617511bb94bbae2dbf99231a7d6be29575aa4d Mon Sep 17 00:00:00 2001
ab7d06
From: Lubomir Rintel <lkundrak@v3.sk>
ab7d06
Date: Thu, 1 Oct 2015 17:17:52 +0200
ab7d06
Subject: [PATCH] nm-vpn-service-plugin: increase the quit timer
ab7d06
ab7d06
We now (since 3272ff6 libnm/libnm-glib: don't quit in the middle of asking for
ab7d06
secrets) always hook on the quit timer when NM asks the plugin if it needs
ab7d06
secrets. The timer is 20 seconds, which seems too short.
ab7d06
ab7d06
Let's make it three minutes. Don't bother adding another timer or using a
ab7d06
distinct timeout: it does no harm for the plugin to remain unused for three
ab7d06
minutes on a bus.
ab7d06
ab7d06
Another option would be to completely unhook it; however the plugin wouldn't
ab7d06
learn if the user cancelled the NM's secrets request and would remain unused
ab7d06
on the bus forever.
ab7d06
ab7d06
(cherry picked from commit b1512221bc29f24b86d464dc5117439c366fd299)
ab7d06
---
ab7d06
 libnm-glib/nm-vpn-plugin.c | 2 +-
ab7d06
 libnm/nm-vpn-plugin-old.c  | 2 +-
ab7d06
 2 files changed, 2 insertions(+), 2 deletions(-)
ab7d06
ab7d06
diff --git a/libnm-glib/nm-vpn-plugin.c b/libnm-glib/nm-vpn-plugin.c
ab7d06
index f40ea80..a9c4a1f 100644
ab7d06
--- a/libnm-glib/nm-vpn-plugin.c
ab7d06
+++ b/libnm-glib/nm-vpn-plugin.c
ab7d06
@@ -69,7 +69,7 @@ static gboolean impl_vpn_plugin_set_failure (NMVPNPlugin *plugin,
ab7d06
 
ab7d06
 #include "nm-vpn-plugin-glue.h"
ab7d06
 
ab7d06
-#define NM_VPN_PLUGIN_QUIT_TIMER    20
ab7d06
+#define NM_VPN_PLUGIN_QUIT_TIMER    180
ab7d06
 
ab7d06
 G_DEFINE_ABSTRACT_TYPE (NMVPNPlugin, nm_vpn_plugin, G_TYPE_OBJECT)
ab7d06
 
ab7d06
diff --git a/libnm/nm-vpn-plugin-old.c b/libnm/nm-vpn-plugin-old.c
ab7d06
index 24d8e40..deaa07d 100644
ab7d06
--- a/libnm/nm-vpn-plugin-old.c
ab7d06
+++ b/libnm/nm-vpn-plugin-old.c
ab7d06
@@ -44,7 +44,7 @@
ab7d06
 
ab7d06
 #include "nmdbus-vpn-plugin.h"
ab7d06
 
ab7d06
-#define NM_VPN_PLUGIN_OLD_QUIT_TIMER    20
ab7d06
+#define NM_VPN_PLUGIN_OLD_QUIT_TIMER    180
ab7d06
 
ab7d06
 static void nm_vpn_plugin_old_initable_iface_init (GInitableIface *iface);
ab7d06
 
ab7d06
-- 
ab7d06
2.4.3
ab7d06