diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-05 00:53:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-05 00:53:22 +0000 |
commit | 15dd8e6cc1199d611d804853e134882bf13b234a (patch) | |
tree | 7cc90886eabe8d0ffa397a319e12a87042d0ba28 /src/transport/plugin_transport_tcp.c | |
parent | bf6a2c9deeff7a3b384eb029d8267d6099066df3 (diff) | |
download | gnunet-15dd8e6cc1199d611d804853e134882bf13b234a.tar.gz gnunet-15dd8e6cc1199d611d804853e134882bf13b234a.zip |
Various changes:
- removed "in_use" from being passed to ATS, no
longer needed as we tell ATS when we cannot
follow a suggestion by removing the address;
simplifies the code a lot
- better handling of state machine, fallback to
primary session if address switch to new
session timed out
- nicer logging
- more comments
- new testcase failures, because of
#3652, #3651 and #3650 (or more that i missed).
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index a070fdfc0..882cc4a44 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1523,7 +1523,9 @@ tcp_plugin_get_session (void *cls, | |||
1523 | addrlen = address->address_length; | 1523 | addrlen = address->address_length; |
1524 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1524 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1525 | "Trying to get session for `%s' address of peer `%s'\n", | 1525 | "Trying to get session for `%s' address of peer `%s'\n", |
1526 | tcp_plugin_address_to_string(NULL, address->address, address->address_length), | 1526 | tcp_plugin_address_to_string (NULL, |
1527 | address->address, | ||
1528 | address->address_length), | ||
1527 | GNUNET_i2s (&address->peer)); | 1529 | GNUNET_i2s (&address->peer)); |
1528 | 1530 | ||
1529 | if (GNUNET_HELLO_address_check_option (address, | 1531 | if (GNUNET_HELLO_address_check_option (address, |