[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13327 - in gnunet/src: hostlist transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13327 - in gnunet/src: hostlist transport |
Date: |
Wed, 20 Oct 2010 19:49:08 +0200 |
Author: grothoff
Date: 2010-10-20 19:49:08 +0200 (Wed, 20 Oct 2010)
New Revision: 13327
Modified:
gnunet/src/hostlist/hostlist-server.c
gnunet/src/transport/plugin_transport_http.c
Log:
off by one
Modified: gnunet/src/hostlist/hostlist-server.c
===================================================================
--- gnunet/src/hostlist/hostlist-server.c 2010-10-20 14:13:34 UTC (rev
13326)
+++ gnunet/src/hostlist/hostlist-server.c 2010-10-20 17:49:08 UTC (rev
13327)
@@ -536,9 +536,9 @@
tv.value = (uint64_t) timeout;
else
tv = GNUNET_TIME_UNIT_FOREVER_REL;
- GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max);
- GNUNET_NETWORK_fdset_copy_native (wws, &ws, max);
- GNUNET_NETWORK_fdset_copy_native (wes, &es, max);
+ GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);
+ GNUNET_NETWORK_fdset_copy_native (wws, &ws, max + 1);
+ GNUNET_NETWORK_fdset_copy_native (wes, &es, max + 1);
ret = GNUNET_SCHEDULER_add_select (sched,
GNUNET_SCHEDULER_PRIORITY_HIGH,
GNUNET_SCHEDULER_NO_TASK,
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2010-10-20 14:13:34 UTC
(rev 13326)
+++ gnunet/src/transport/plugin_transport_http.c 2010-10-20 17:49:08 UTC
(rev 13327)
@@ -1267,9 +1267,9 @@
tv.value = (uint64_t) timeout;
else
tv = GNUNET_TIME_UNIT_SECONDS;
- GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max);
- GNUNET_NETWORK_fdset_copy_native (wws, &ws, max);
- GNUNET_NETWORK_fdset_copy_native (wes, &es, max);
+ GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);
+ GNUNET_NETWORK_fdset_copy_native (wws, &ws, max + 1);
+ GNUNET_NETWORK_fdset_copy_native (wes, &es, max + 1);
if (daemon_handle == plugin->http_server_daemon_v4)
{
if (plugin->http_server_task_v4 != GNUNET_SCHEDULER_NO_TASK)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13327 - in gnunet/src: hostlist transport,
gnunet <=