diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-31 16:14:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-31 16:14:21 +0000 |
commit | c7cbc67eccdca34170bda2eb5e4c83f6096b8d1c (patch) | |
tree | f930bfa60e732734cb9c6052038450931f10ef07 /src/nat/nat_test.c | |
parent | 3a3cb29c454bf15f32ad70c1edc87c957d2a5818 (diff) | |
download | gnunet-c7cbc67eccdca34170bda2eb5e4c83f6096b8d1c.tar.gz gnunet-c7cbc67eccdca34170bda2eb5e4c83f6096b8d1c.zip |
-use define, fix timeout
Diffstat (limited to 'src/nat/nat_test.c')
-rw-r--r-- | src/nat/nat_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
30 | 30 | ||
31 | #define LOG(kind,...) GNUNET_log_from (kind, "nat", __VA_ARGS__) | 31 | #define LOG(kind,...) GNUNET_log_from (kind, "nat", __VA_ARGS__) |
32 | 32 | ||
33 | #define NAT_SERVER_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) | ||
34 | |||
33 | /** | 35 | /** |
34 | * Entry we keep for each incoming connection. | 36 | * Entry we keep for each incoming connection. |
35 | */ | 37 | */ |
@@ -353,7 +355,7 @@ addr_cb (void *cls, int add_remove, const struct sockaddr *addr, | |||
353 | GNUNET_CONTAINER_DLL_insert (h->ca_head, h->ca_tail, ca); | 355 | GNUNET_CONTAINER_DLL_insert (h->ca_head, h->ca_tail, ca); |
354 | GNUNET_break (GNUNET_OK == | 356 | GNUNET_break (GNUNET_OK == |
355 | GNUNET_CLIENT_transmit_and_get_response (client, &msg.header, | 357 | GNUNET_CLIENT_transmit_and_get_response (client, &msg.header, |
356 | GNUNET_TIME_UNIT_SECONDS, | 358 | NAT_SERVER_TIMEOUT, |
357 | GNUNET_YES, NULL, | 359 | GNUNET_YES, NULL, |
358 | NULL)); | 360 | NULL)); |
359 | } | 361 | } |