From ea907a5c767e7e884adf605cea358bb45246d6c3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 21 Jan 2012 22:38:10 +0000 Subject: [PATCH] -LRN: Pipe-errors-will-trigger-ready-to-read-event --- src/util/network.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/util/network.c b/src/util/network.c index d8c64276b..fb8744af1 100644 --- a/src/util/network.c +++ b/src/util/network.c @@ -1319,12 +1319,15 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds, handle_array[nhandles++] = fh->oOverlapRead->hEvent; readArray[readPipes++] = fh; } - /* - * else - * { - * SetErrnoFromWinError (error_code); - * } - */ + else + { +#if DEBUG_NETWORK + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Read failed, adding the read ready event to the array as %d\n", nhandles); +#endif + handle_array[nhandles++] = hEventReadReady; + readArray[readPipes++] = fh; + } } else { -- 2.25.1