aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_local.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-09 14:50:26 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-09 14:50:26 +0000
commit1240b4fd34967bf9b10d06d38247d7a7033e6b3e (patch)
tree3c258e0949d64e89ff2a47fc0f74d233851df236 /src/mesh/gnunet-service-mesh_local.c
parentb2764bcb9e08d2ac3a1199adc70b731fdf802460 (diff)
downloadgnunet-1240b4fd34967bf9b10d06d38247d7a7033e6b3e.tar.gz
gnunet-1240b4fd34967bf9b10d06d38247d7a7033e6b3e.zip
- dont generate errors on async channel destruction, use stats instead
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r--src/mesh/gnunet-service-mesh_local.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index 3e6285a20..5199476a0 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -433,6 +433,9 @@ handle_channel_destroy (void *cls, struct GNUNET_SERVER_Client *client,
433 if (NULL == ch) 433 if (NULL == ch)
434 { 434 {
435 LOG (GNUNET_ERROR_TYPE_DEBUG, " channel %X not found\n", chid); 435 LOG (GNUNET_ERROR_TYPE_DEBUG, " channel %X not found\n", chid);
436 GNUNET_STATISTICS_update (stats,
437 "# client destroy messages on unknown channel",
438 1, GNUNET_NO);
436 GNUNET_SERVER_receive_done (client, GNUNET_OK); 439 GNUNET_SERVER_receive_done (client, GNUNET_OK);
437 return; 440 return;
438 } 441 }
@@ -491,8 +494,10 @@ handle_data (void *cls, struct GNUNET_SERVER_Client *client,
491 ch = GML_channel_get (c, chid); 494 ch = GML_channel_get (c, chid);
492 if (NULL == ch) 495 if (NULL == ch)
493 { 496 {
494 GNUNET_break (0); 497 GNUNET_STATISTICS_update (stats,
495 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 498 "# client data messages on unknown channel",
499 1, GNUNET_NO);
500 GNUNET_SERVER_receive_done (client, GNUNET_OK);
496 return; 501 return;
497 } 502 }
498 503
@@ -550,6 +555,9 @@ handle_ack (void *cls, struct GNUNET_SERVER_Client *client,
550 { 555 {
551 LOG (GNUNET_ERROR_TYPE_DEBUG, "Channel %X unknown.\n", chid); 556 LOG (GNUNET_ERROR_TYPE_DEBUG, "Channel %X unknown.\n", chid);
552 LOG (GNUNET_ERROR_TYPE_DEBUG, " for client %u.\n", c->id); 557 LOG (GNUNET_ERROR_TYPE_DEBUG, " for client %u.\n", c->id);
558 GNUNET_STATISTICS_update (stats,
559 "# client ack messages on unknown channel",
560 1, GNUNET_NO);
553 GNUNET_SERVER_receive_done (client, GNUNET_OK); 561 GNUNET_SERVER_receive_done (client, GNUNET_OK);
554 return; 562 return;
555 } 563 }