"Messages" App goes Offline when viscosity is connecting

Hi!

I’ve tried searching for this issue, but I haven’t been able to find anything, so I apologize if this has already been addressed in another topic.

Whenever I attempt to bring up a VPN connection in Viscosity, the “Messages” app temporarily puts all my accounts in the “offline” state. This isn’t a problem if the VPN interface is the only one connecting, since Messages reconnects my accounts once the VPN connection is established. However, if I’ve just unlocked my computer, for example, then the Wifi and VPN connections are both trying to come up at once. If the order is just right, Messages will leave my accounts permanently offline until I manually bring them online, without any warning.

Is there some way I can prevent this from happening? I’ve asked Apple support and they weren’t able to offer any solutions. I suspect that Messages is incorrectly treating the tun adapter as a valid indicator of my connection status, which is causing it to try to “intelligently” shutdown my account connections.

None of my accounts in Messages require the VPN connection to function.

Hi sixblades,

My recommendation would be to delay Viscosity’s reconnection attempt when waking your computer from sleep, so you can be sure it isn’t attempting a connect until your WiFi connection is back up. Please see the following thread for details:
https://www.sparklabs.com/forum/t/delay-on-wake/787/2

However generally your WiFi connection shouldn’t be disconnecting when simply bringing up the login window to lock your machine (without the computer sleeping). If this is what is happening you may like to refer to:
http://apple.stackexchange.com/questions/71884/wi-fi-disconnects-when-i-lock-the-mac

Cheers,
James

Hi James,

Thanks for the reply! I was able to solve the wifi disconnect on lock issue, but setting the reconnect-on-wake-delay higher didn’t seem to affect Viscosity’s behavior when NOT resuming from sleep.

Is there a setting for adding a delay when Viscosity detects that an Internet connection has been re-established, regardless of whether or not it was triggered by the computer waking up?

Hi sixblades,

I’m afraid you can’t delay automatic reconnection attempts (if enabled) for when Viscosity connects local network drop outs and reconnections. You could try downloading the latest beta version and turning off the “Disable back to My Mac while connected (recommended)” option under Preferences->Advanced. This will likely stop Messages going briefly offline during a connect attempt, however BTMM is known to cause both DNS and IP assignment issues, so if you run into any problems you should turn the option back on.

The beta version can be downloaded from:
https://www.sparklabs.com/forum/t/beta-latest-build-of-viscosity-for-mac/46/1

Cheers,
James