aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-01 16:53:20 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-01 16:53:20 +0000
commitb3e7076d775a894edc8659d165407f41e8dea45a (patch)
tree8ed3dfa52bdb8b7e6e2d1a137ba436e0b770a0a2 /src
parent08c56e7eb94ea53771190f987d25cbd48bac5e17 (diff)
downloadgnunet-b3e7076d775a894edc8659d165407f41e8dea45a.tar.gz
gnunet-b3e7076d775a894edc8659d165407f41e8dea45a.zip
-bratao: there is one little innofensive patch. http://pastebin.com/iRharWUm , On W32 we waiting 10 microseconds on the select, and its completely unecessary. Some tests are 30% faster to me.
Diffstat (limited to 'src')
-rw-r--r--src/util/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/network.c b/src/util/network.c
index ff559599f..972f93849 100644
--- a/src/util/network.c
+++ b/src/util/network.c
@@ -1452,7 +1452,7 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds,
1452 struct timeval tvslice; 1452 struct timeval tvslice;
1453 1453
1454 tvslice.tv_sec = 0; 1454 tvslice.tv_sec = 0;
1455 tvslice.tv_usec = 10; 1455 tvslice.tv_usec = 0;
1456 retcode = select (nfds, &aread, &awrite, &aexcept, &tvslice); 1456 retcode = select (nfds, &aread, &awrite, &aexcept, &tvslice);
1457 if (retcode == -1) 1457 if (retcode == -1)
1458 retcode = 0; 1458 retcode = 0;