File nm-vpn-increase-quit-time.patch of Package NetworkManager.5182
From b1512221bc29f24b86d464dc5117439c366fd299 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel <lkundrak@v3.sk> Date: Thu, 1 Oct 2015 17:17:52 +0200 Subject: nm-vpn-service-plugin: increase the quit timer We now (since 3272ff6 libnm/libnm-glib: don't quit in the middle of asking for secrets) always hook on the quit timer when NM asks the plugin if it needs secrets. The timer is 20 seconds, which seems too short. Let's make it three minutes. Don't bother adding another timer or using a distinct timeout: it does no harm for the plugin to remain unused for three minutes on a bus. Another option would be to completely unhook it; however the plugin wouldn't learn if the user cancelled the NM's secrets request and would remain unused on the bus forever. Index: NetworkManager-1.0.6/libnm-glib/nm-vpn-plugin.c =================================================================== --- NetworkManager-1.0.6.orig/libnm-glib/nm-vpn-plugin.c +++ NetworkManager-1.0.6/libnm-glib/nm-vpn-plugin.c @@ -69,7 +69,7 @@ static gboolean impl_vpn_plugin_set_fail #include "nm-vpn-plugin-glue.h" -#define NM_VPN_PLUGIN_QUIT_TIMER 20 +#define NM_VPN_PLUGIN_QUIT_TIMER 180 G_DEFINE_ABSTRACT_TYPE (NMVPNPlugin, nm_vpn_plugin, G_TYPE_OBJECT) Index: NetworkManager-1.0.6/libnm/nm-vpn-plugin-old.c =================================================================== --- NetworkManager-1.0.6.orig/libnm/nm-vpn-plugin-old.c +++ NetworkManager-1.0.6/libnm/nm-vpn-plugin-old.c @@ -44,7 +44,7 @@ #include "nmdbus-vpn-plugin.h" -#define NM_VPN_PLUGIN_OLD_QUIT_TIMER 20 +#define NM_VPN_PLUGIN_OLD_QUIT_TIMER 180 static void nm_vpn_plugin_old_initable_iface_init (GInitableIface *iface);