diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-17 20:13:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-17 20:13:27 +0000 |
commit | 09261c0fea3f9db420f42d87964ba90153b2ede0 (patch) | |
tree | 11187183c9793e9a852e66f5e9ee6711c25c6828 /src/transport/gnunet-service-transport.c | |
parent | 0417487e26a50ea8a319715ee29c0fd5a617711e (diff) | |
download | gnunet-09261c0fea3f9db420f42d87964ba90153b2ede0.tar.gz gnunet-09261c0fea3f9db420f42d87964ba90153b2ede0.zip |
more log messages
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index c571277e2..2a97f8155 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -295,10 +295,19 @@ plugin_env_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
295 | /* FIXME: this should not be needed, and not sure it's good to have it, but without | 295 | /* FIXME: this should not be needed, and not sure it's good to have it, but without |
296 | this connections seem to go extra-slow */ | 296 | this connections seem to go extra-slow */ |
297 | if ((ats_count > 0) && (ats != NULL)) | 297 | if ((ats_count > 0) && (ats != NULL)) |
298 | { | ||
299 | if (NULL != session) | ||
300 | GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, | ||
301 | "transport-ats", | ||
302 | "Giving ATS session %p of plugin %s for peer %s\n", | ||
303 | session, | ||
304 | plugin_name, | ||
305 | GNUNET_i2s (peer)); | ||
298 | GNUNET_ATS_address_update (GST_ats, peer, | 306 | GNUNET_ATS_address_update (GST_ats, peer, |
299 | plugin_name, sender_address, sender_address_len, | 307 | plugin_name, sender_address, sender_address_len, |
300 | session, | 308 | session, |
301 | ats, ats_count); | 309 | ats, ats_count); |
310 | } | ||
302 | #endif | 311 | #endif |
303 | return ret; | 312 | return ret; |
304 | } | 313 | } |
@@ -347,6 +356,12 @@ plugin_env_session_end (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
347 | "Session %X to peer `%s' ended \n", | 356 | "Session %X to peer `%s' ended \n", |
348 | session, GNUNET_i2s (peer)); | 357 | session, GNUNET_i2s (peer)); |
349 | #endif | 358 | #endif |
359 | if (NULL != session) | ||
360 | GNUNET_log_from (GNUNET_ERROR_TYPE_INFO, | ||
361 | "transport-ats", | ||
362 | "Telling ATS to destroy session %p from peer %s\n", | ||
363 | session, | ||
364 | GNUNET_i2s (peer)); | ||
350 | GNUNET_ATS_address_destroyed(GST_ats, peer, NULL, NULL, 0, session); | 365 | GNUNET_ATS_address_destroyed(GST_ats, peer, NULL, NULL, 0, session); |
351 | GST_neighbours_session_terminated (peer, session); | 366 | GST_neighbours_session_terminated (peer, session); |
352 | } | 367 | } |