aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-11 08:42:40 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-11 08:42:40 +0000
commit48fa0ba8abea2464b2df67247ae1bd50d0f1f934 (patch)
treedae4c813f027986748b1b3d2a3f84f8d2a7eb00c /src/transport/plugin_transport_tcp.c
parent09c50fa070ad81f2d213975782b2948a7cb82428 (diff)
downloadgnunet-48fa0ba8abea2464b2df67247ae1bd50d0f1f934.tar.gz
gnunet-48fa0ba8abea2464b2df67247ae1bd50d0f1f934.zip
-send proper termination on error
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index ca90d461d..31100d748 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -1636,7 +1636,8 @@ tcp_plugin_disconnect (void *cls, const struct GNUNET_PeerIdentity *target)
1636{ 1636{
1637 struct Plugin *plugin = cls; 1637 struct Plugin *plugin = cls;
1638 1638
1639 LOG(GNUNET_ERROR_TYPE_DEBUG, "Disconnecting peer `%4s'\n", 1639 LOG(GNUNET_ERROR_TYPE_DEBUG,
1640 "Disconnecting peer `%4s'\n",
1640 GNUNET_i2s (target)); 1641 GNUNET_i2s (target));
1641 GNUNET_CONTAINER_multipeermap_get_multiple (plugin->sessionmap, target, 1642 GNUNET_CONTAINER_multipeermap_get_multiple (plugin->sessionmap, target,
1642 &session_disconnect_it, plugin); 1643 &session_disconnect_it, plugin);
@@ -2275,7 +2276,8 @@ handle_tcp_data (void *cls, struct GNUNET_SERVER_Client *client,
2275 } 2276 }
2276 else 2277 else
2277 { 2278 {
2278 LOG(GNUNET_ERROR_TYPE_DEBUG, "Throttling receiving from `%s' for %s\n", 2279 LOG(GNUNET_ERROR_TYPE_DEBUG,
2280 "Throttling receiving from `%s' for %s\n",
2279 GNUNET_i2s (&session->target), 2281 GNUNET_i2s (&session->target),
2280 GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_YES)); 2282 GNUNET_STRINGS_relative_time_to_string (delay, GNUNET_YES));
2281 GNUNET_SERVER_disable_receive_done_warning (client); 2283 GNUNET_SERVER_disable_receive_done_warning (client);