vcl: fix nonblocking accept with >1 event in the queue 71/23371/3
authorCarl Smith <carl.smith@alliedtelesis.co.nz>
Tue, 12 Nov 2019 01:57:37 +0000 (14:57 +1300)
committerFlorin Coras <florin.coras@gmail.com>
Tue, 12 Nov 2019 19:35:37 +0000 (19:35 +0000)
We discard unwanted events until we get an ACCEPTED.
But if we are non-blocking we need to check the queue
length every time and EAGAIN if empty before waiting.

Type: fix

Signed-off-by: Carl Smith <carl.smith@alliedtelesis.co.nz>
Change-Id: Ie0c7e5cb00f0d37d2e1534f8bb384221ff56f2e3


No differences found