diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-03 22:32:58 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-03 22:36:41 +0100 |
commit | fb416747dcfb6e53df5d249d07123989e4ddc796 (patch) | |
tree | e6a92a53820b48e451eb080aca959d38103da404 /example | |
parent | global: bump copyright (diff) | |
download | wintun-fb416747dcfb6e53df5d249d07123989e4ddc796.tar.xz wintun-fb416747dcfb6e53df5d249d07123989e4ddc796.zip |
api: ensure that device object exists before returning from open/create0.10.1
Some users are seeing errors like this after rebooting from Windows
Update:
2021-01-28 18:39:45.220197: [TUN] Creating Wintun interface
2021-01-28 18:39:49.420116: [TUN] [Wintun] CreateAdapter: Creating adapter
2021-01-28 18:39:53.704007: [TUN] [Wintun] OpenDeviceObject: Failed to connect to adapter: The system cannot find the path specified. (Code 0x00000003)
2021-01-28 18:39:53.704007: [TUN] [Wintun] WintunStartSession: Failed to open adapter device object
2021-01-28 18:39:54.097037: [TUN] Unable to create Wintun interface: Error starting session: The system cannot find the path specified.
It appears that creation of the device object file might happen
asynchronously, so this commit polls for it.
Reported-by: Artem Kuroptev <artem@kuroptev.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'example')
0 files changed, 0 insertions, 0 deletions