On Tue, 2 Nov 2004, Mathias Sundman wrote:

> James,
> 
> I think we made a little misstake with the "auto-find free TAP device" 
> feature.
> 
> In OpenVPN GUI >= beta20 I close the connections and restart them after a 
> suspend. If multiple connections were running this means that they 
> will all be re-started at the exact same time after the suspend.
> 
> I suppose the same thing happends when you start the service wrapper.
> 
> Anyway, I had two connections running, and after a suspend, one of the 
> connections started fine, but the other one failed with the following 
> message:
> 
> CreateFile failed on TAP device: 
> \\.\Global\{75E5A03B-F1A9-422E-8DBA-EFF4B55C1B07}.tap:
> General failure (ERROR_GEN_FAILURE) (errno=31)
> 
> which is the same interface as the first connection used.
> 
> I havn't checked the code yet, but I suspect that you changed the code to 
> search for a free adapter when openvpn is started, but not actually open 
> it until later.

Yes, we will probably need to set IFCONFIG_AFTER_TUN_OPEN for Windows, to 
avoid the double-open race.

James

Reply via email to