summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changes/bug_retr_hangs3
-rw-r--r--src/leap/bitmask/services/eip/vpnprocess.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/bug_retr_hangs b/changes/bug_retr_hangs
new file mode 100644
index 00000000..8bdf7bac
--- /dev/null
+++ b/changes/bug_retr_hangs
@@ -0,0 +1,3 @@
+ o Make the poll interval bigger to improve openvpn's internal
+ behavior. If it gets queried too many times per second, it's
+ behavior won't be good. Fixes #3430. \ No newline at end of file
diff --git a/src/leap/bitmask/services/eip/vpnprocess.py b/src/leap/bitmask/services/eip/vpnprocess.py
index 497df188..95ea2334 100644
--- a/src/leap/bitmask/services/eip/vpnprocess.py
+++ b/src/leap/bitmask/services/eip/vpnprocess.py
@@ -31,6 +31,7 @@ from leap.bitmask.services.eip.vpnlaunchers import get_platform_launcher
from leap.bitmask.services.eip.eipconfig import EIPConfig
from leap.bitmask.services.eip.udstelnet import UDSTelnet
from leap.bitmask.util import first
+from leap.bitmask.platform_init import IS_MAC
from leap.common.check import leap_assert, leap_assert_type
logger = logging.getLogger(__name__)
@@ -228,7 +229,7 @@ class VPNManager(object):
"""
# Timers, in secs
- POLL_TIME = 0.5
+ POLL_TIME = 2.5 if IS_MAC else 1.0
CONNECTION_RETRY_TIME = 1
TS_KEY = "ts"