From b0f31f578b0669b598d3ded3a625685b125bef1d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 3 Oct 2017 20:28:09 -0700 Subject: Improve UDP test coverage, fix numerous issues found. We introduced richer, deeper tests for UDP functionality. These tests uncovered a number of issues which this commit fixes. The Windows IOCP code needs to support multiple aios on a single nni_win_event. A redesign of the IOCP handling addresses that. The POSIX UDP code also needed fixes; foremost among them is the fact that the UDP file descriptor is not placed into non-blocking mode, leading to potential hangs. A number of race conditions and bugs along the implementation of the above items were uncovered and fixed. To the best of our knowledge the current code is bug-free. --- src/core/aio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/aio.h') diff --git a/src/core/aio.h b/src/core/aio.h index 14af4efc..b12fcc55 100644 --- a/src/core/aio.h +++ b/src/core/aio.h @@ -151,6 +151,7 @@ extern void nni_aio_wait(nni_aio *); // and append will perform any necessary remove first. extern void nni_aio_list_init(nni_list *); extern void nni_aio_list_append(nni_list *, nni_aio *); +extern void nni_aio_list_prepend(nni_list *, nni_aio *); extern void nni_aio_list_remove(nni_aio *); extern int nni_aio_list_active(nni_aio *); -- cgit v1.2.3-70-g09d2