Call WSAWaitForMultipleEvents() in a loop until we have checked all events.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Tue, 27 Feb 2018 21:20:46 +0000 (14:20 -0700)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 28 Feb 2018 20:20:58 +0000 (21:20 +0100)
commitd6c8a1a3d3e945142b251b2897517e10ce0dfce4
treec4ec9fb22edc8c2595fd7eccc6937ebf831dd6f9
parent7c73cb3ace6659df58ec2382b8d47bb521dad886
Call WSAWaitForMultipleEvents() in a loop until we have checked all events.
WSAWaitForMultipleEvents() only returns the index of the first event that is read.  We need to call WSAWaitForMultipleEvents() repeatedly to check if other events are also ready.  Otherwise, a single busy event (such as the TAP device) can starve the other events.
src/event.c
src/splay_tree.c
src/splay_tree.h