projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3cb29
)
-use define, fix timeout
author
Christian Grothoff
<christian@grothoff.org>
Sat, 31 Mar 2012 16:14:21 +0000
(16:14 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 31 Mar 2012 16:14:21 +0000
(16:14 +0000)
src/nat/nat_test.c
patch
|
blob
|
history
diff --git
a/src/nat/nat_test.c
b/src/nat/nat_test.c
index b6e2a744c4571728c92d1f4687c0b3f9202c466a..92f72e4beacb940a8f44f6df24d09dd28ccaa987 100644
(file)
--- 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));
}