desktop-app icon indicating copy to clipboard operation
desktop-app copied to clipboard

Slow reconnect after computer sleep

Open ajay-gh opened this issue 4 years ago • 3 comments

Bug report

Describe your environment

  • Device: MacBook Pro
  • OS name and version: Mojave
  • IVPN app version: v3.4.0

Describe the problem

A problem unknown under Android or iOS, when the computer wakes from sleep it can take up to a minute for the client to establish a working connection to the last server. This is independent of server or protocol chosen. When the user cycles (toggles) the connection button in the UI (top right) the connection comes on much faster, often immediately.

Steps to reproduce:

Included in the problem description.

Observed Results:

Connection takes as much as 30 times longer than on iOS using the same network, wifi, router, etc and at the same time of the day.

Expected Results:

Match performance under mobile devices.

Relevant Code:

??

ajay-gh avatar Jan 29 '22 11:01 ajay-gh

Which protocol do you use (OpenVPN or Wireguard)? Did you try to use Wireguard?

stenya avatar Jan 29 '22 12:01 stenya

Hello, I thought when I wrote "independent of ... and protocol" that was clear ;) but yes, I tried both protocols.

ajay-gh avatar Jan 29 '22 18:01 ajay-gh

Carefully checked my (outgoing) IP logs. To my surprise it turns out that during the time the client does not connect (from end of sleep to immediately before the connection gets re-established, the client does not try to connect to anywhere / anything. At the end of the long wait, the client seems to wake up, reach out to the last wireguard (or openvpn) server, makes the connection and all is well.

ajay-gh avatar Jan 30 '22 14:01 ajay-gh