From 5fb832e06fd4ded6ccc45f943837fd374a9cea7a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 18 Jul 2017 19:52:08 -0700 Subject: Fixes most of the raaces in posix; but at least one remains outstanding. Apparently there are circumstances when a pipedesc may get orphaned form the pollq. This triggers an assertion failure when it occurs. I am still trying to understand how this can occur. Stay tuned. --- src/platform/windows/win_net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/platform/windows/win_net.c') diff --git a/src/platform/windows/win_net.c b/src/platform/windows/win_net.c index 59fc0986..633dd256 100644 --- a/src/platform/windows/win_net.c +++ b/src/platform/windows/win_net.c @@ -544,8 +544,7 @@ nni_win_tcp_acc_finish(nni_win_event *evt, nni_aio *aio) return; } - aio->a_pipe = pipe; - if (nni_aio_finish(aio, 0, 0) != 0) { + if (nni_aio_finish_pipe(aio, 0, pipe) != 0) { nni_plat_tcp_pipe_fini(pipe); } } -- cgit v1.2.3-70-g09d2