Endless loop when Binding to non-existing IP-Adress
Issue #25
new
Via the UI, I configure a binding for a specific IP-Address. When the service boots, and this IP-Address does not exist (e.g. the USB-Network-Adapter is unplugged), the service gets stuck in a busy loop.
The following line in start_threads.c
fails immediately, with error code WAIT_FAILED
:
Rc = WaitForMultipleObjects (nCount, tHdle, FALSE, 30000);
This error code is not handled in the statements below (only WAIT_TIMEOUT
, and successful wait).
The error code obtained via ::GetLastError()
is 6 (ERROR_INVALID_HANDLE
).