Superbil / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
1 stars 0 forks source link

detect live network connection before reconnecting #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NOTE: We suggest that you post on the Tunnelblick Discussion Group before
submitting an "Issue". (http://groups.google.com/group/tunnelblick-discuss)

What steps will reproduce the problem?
1. put the computer to sleep (close the lid)
2. go somewhere where there's no wifi, or disconnect your wifi for testing
3. open the lid (wake the machine up), tunnelblick will try to reconnect as mad 
despite the lack of connectivity. 

What is the expected output?
It should wait, there are frameworks in os x that will let app know about 
availability of connection.

What do you see instead?
tries to reconnect regardless. 

What version of Tunnelblick are you using? On what version of OS X?
10.7.0 Tunnelblick 3.2beta26 (build 2687) 

Please provide any additional information below. Please include your
configuration file and the contents of the OpenVPN Log window (including
the first few lines with version information), but remember to remove any
sensitive information such as IP addresses.

Original issue reported on code.google.com by gryz...@gmail.com on 31 Jul 2011 at 10:32

GoogleCodeExporter commented 9 years ago
Tunnelblick tells OpenVPN to try to reconnect. OpenVPN tries to reconnect once 
every five seconds or so, resulting in a negligible CPU load.

In general, notifications are better than polling. But in this case, I don't 
consider the additional complication to be worth it. And my understanding is 
that those frameworks do not work on Tiger?

Original comment by jkbull...@gmail.com on 31 Jul 2011 at 2:04

GoogleCodeExporter commented 9 years ago
http://developer.apple.com/library/mac/#DOCUMENTATION/Networking/Conceptual/Syst
emConfigFrameworks/SC_ReachConnect/SC_ReachConnect.html
most of it available since 10.3. 

Tunnelblick can only restart the connection if it makes sense. Can it ?

Original comment by gryz...@gmail.com on 31 Jul 2011 at 5:31