From: Christian Grothoff Date: Sat, 21 Jan 2012 22:38:10 +0000 (+0000) Subject: -LRN: Pipe-errors-will-trigger-ready-to-read-event X-Git-Tag: initial-import-from-subversion-38251~15175 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea907a5c767e7e884adf605cea358bb45246d6c3;p=oweals%2Fgnunet.git -LRN: Pipe-errors-will-trigger-ready-to-read-event --- 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 {