From c7cbc67eccdca34170bda2eb5e4c83f6096b8d1c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 31 Mar 2012 16:14:21 +0000 Subject: -use define, fix timeout --- src/nat/nat_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nat/nat_test.c') 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)); } -- cgit v1.2.3