diff options
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r-- | src/transport/test_plugin_transport_http.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 2970cfbf1..4f88ede27 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c | |||
@@ -881,6 +881,15 @@ notify_address (void *cls, | |||
881 | fail_notify_address = GNUNET_NO; | 881 | fail_notify_address = GNUNET_NO; |
882 | } | 882 | } |
883 | 883 | ||
884 | static void | ||
885 | plugin_env_session_end (void *cls, | ||
886 | const struct GNUNET_PeerIdentity *peer, | ||
887 | struct Session *session) | ||
888 | { | ||
889 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Session ended: `%s' %X\n", GNUNET_i2s(peer), session); | ||
890 | } | ||
891 | |||
892 | |||
884 | /** | 893 | /** |
885 | * Setup plugin environment | 894 | * Setup plugin environment |
886 | */ | 895 | */ |
@@ -895,6 +904,7 @@ setup_plugin_environment () | |||
895 | env.receive = &receive; | 904 | env.receive = &receive; |
896 | env.notify_address = ¬ify_address; | 905 | env.notify_address = ¬ify_address; |
897 | env.max_connections = max_connect_per_transport; | 906 | env.max_connections = max_connect_per_transport; |
907 | env.session_end = &plugin_env_session_end; | ||
898 | } | 908 | } |
899 | 909 | ||
900 | 910 | ||
@@ -1071,8 +1081,8 @@ static void run_connection_tests( int phase , void * cls) | |||
1071 | 1081 | ||
1072 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("\nPhase 3: send multiple or big messages after disconnect\n\n")); | 1082 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("\nPhase 3: send multiple or big messages after disconnect\n\n")); |
1073 | /* disconnect from peer, so new connections are created */ | 1083 | /* disconnect from peer, so new connections are created */ |
1074 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Disconnect from peer: `%s'\n", GNUNET_i2s(&my_identity)); | 1084 | //GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Disconnect from peer: `%s'\n", GNUNET_i2s(&my_identity)); |
1075 | api->disconnect(api->cls, &my_identity); | 1085 | //api->disconnect(api->cls, &my_identity); |
1076 | 1086 | ||
1077 | /* send a multiple GNUNET_messages at a time*/ | 1087 | /* send a multiple GNUNET_messages at a time*/ |
1078 | 1088 | ||