From: Bart Polot Date: Mon, 5 Nov 2012 20:36:31 +0000 (+0000) Subject: - don't poll so eagerly X-Git-Tag: initial-import-from-subversion-38251~10991 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a85f64645e42530852e83eb1074451349212ed1;p=oweals%2Fgnunet.git - don't poll so eagerly --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 5808b70c7..92325eab3 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -61,6 +61,8 @@ #define MESH_DEBUG_CONNECTION GNUNET_NO #define MESH_DEBUG_TIMING __LINUX__ && GNUNET_NO +#define MESH_POLL_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) + #if MESH_DEBUG_CONNECTION #define DEBUG_CONN(...) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, __VA_ARGS__) #else @@ -5160,7 +5162,7 @@ queue_send (void *cls, size_t size, void *buf) GNUNET_i2s(&my_full_id)); if (NULL == cinfo) cinfo = tunnel_get_neighbor_fc (t, &dst_id); - cinfo->fc_poll = GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_UNIT_SECONDS, + cinfo->fc_poll = GNUNET_SCHEDULER_add_delayed(MESH_POLL_TIME, &tunnel_poll, cinfo); } }