From: Christian Grothoff Date: Sat, 31 Mar 2012 16:14:21 +0000 (+0000) Subject: -use define, fix timeout X-Git-Tag: initial-import-from-subversion-38251~14049 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7cbc67eccdca34170bda2eb5e4c83f6096b8d1c;p=oweals%2Fgnunet.git -use define, fix timeout --- diff --git a/src/nat/nat_test.c b/src/nat/nat_test.c index b6e2a744c..92f72e4be 100644 --- a/src/nat/nat_test.c +++ b/src/nat/nat_test.c @@ -30,6 +30,8 @@ #define LOG(kind,...) GNUNET_log_from (kind, "nat", __VA_ARGS__) +#define NAT_SERVER_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) + /** * Entry we keep for each incoming connection. */ @@ -353,7 +355,7 @@ addr_cb (void *cls, int add_remove, const struct sockaddr *addr, GNUNET_CONTAINER_DLL_insert (h->ca_head, h->ca_tail, ca); GNUNET_break (GNUNET_OK == GNUNET_CLIENT_transmit_and_get_response (client, &msg.header, - GNUNET_TIME_UNIT_SECONDS, + NAT_SERVER_TIMEOUT, GNUNET_YES, NULL, NULL)); }