aboutsummaryrefslogtreecommitdiff
path: root/src/util/network.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-07-13 16:24:38 +0000
committerLRN <lrn1986@gmail.com>2012-07-13 16:24:38 +0000
commit3baea2d237e0b223fac6cbfa4fd3f830ecc16caa (patch)
treee73602e8cf9198f367f7a3d94dfa92d40665a4ea /src/util/network.c
parent1e30a9c42a35e67efd684e7a5455858fa72775ee (diff)
downloadgnunet-3baea2d237e0b223fac6cbfa4fd3f830ecc16caa.tar.gz
gnunet-3baea2d237e0b223fac6cbfa4fd3f830ecc16caa.zip
Handle peek errors more appropriately in w32 select
Diffstat (limited to 'src/util/network.c')
-rw-r--r--src/util/network.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/network.c b/src/util/network.c
index 6d8b2869a..012b1af0b 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -1599,7 +1599,11 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds,
1599 i, readArray[i]->h, bret, waitstatus, error); 1599 i, readArray[i]->h, bret, waitstatus, error);
1600 if (bret == 0) 1600 if (bret == 0)
1601 { 1601 {
1602 if (error != ERROR_BROKEN_PIPE) 1602 /* TODO: either add more errors to this condition, or eliminate it
1603 * entirely (failed to peek -> pipe is in serious trouble, should
1604 * be selected as readable).
1605 */
1606 if (error != ERROR_BROKEN_PIPE && error != ERROR_INVALID_HANDLE)
1603 continue; 1607 continue;
1604 } 1608 }
1605 else if (waitstatus <= 0) 1609 else if (waitstatus <= 0)