diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-20 13:16:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-20 13:16:45 +0000 |
commit | d21f5a91f94fc659923950526c682759791414eb (patch) | |
tree | 14c573d1313c0ce3ef903fb9799884fe68d9162e /src/datastore | |
parent | ff39fe3b38f76da42633a8b7b7a5c123a3eb2081 (diff) | |
download | gnunet-d21f5a91f94fc659923950526c682759791414eb.tar.gz gnunet-d21f5a91f94fc659923950526c682759791414eb.zip |
warn on problems
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 2f505891c..6455ecb5b 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -514,14 +514,16 @@ transmit_callback (void *cls, | |||
514 | msize = ntohs(tcc->msg->size); | 514 | msize = ntohs(tcc->msg->size); |
515 | if (size == 0) | 515 | if (size == 0) |
516 | { | 516 | { |
517 | #if DEBUG_DATASTORE | ||
518 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 517 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
519 | "Transmission failed.\n"); | 518 | _("Transmission to client failed!\n")); |
520 | #endif | ||
521 | if (tcc->tc != NULL) | 519 | if (tcc->tc != NULL) |
522 | tcc->tc (tcc->tc_cls, GNUNET_SYSERR); | 520 | tcc->tc (tcc->tc_cls, GNUNET_SYSERR); |
523 | if (GNUNET_YES == tcc->end) | 521 | if (GNUNET_YES == tcc->end) |
524 | GNUNET_SERVER_receive_done (tcc->client, GNUNET_SYSERR); | 522 | { |
523 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
524 | _("Disconnecting client due to transmission failure!\n")); | ||
525 | GNUNET_SERVER_receive_done (tcc->client, GNUNET_SYSERR); | ||
526 | } | ||
525 | GNUNET_SERVER_client_drop (tcc->client); | 527 | GNUNET_SERVER_client_drop (tcc->client); |
526 | GNUNET_free (tcc->msg); | 528 | GNUNET_free (tcc->msg); |
527 | GNUNET_free (tcc); | 529 | GNUNET_free (tcc); |
@@ -596,10 +598,8 @@ transmit (struct GNUNET_SERVER_Client *client, | |||
596 | GNUNET_break (0); | 598 | GNUNET_break (0); |
597 | if (GNUNET_YES == end) | 599 | if (GNUNET_YES == end) |
598 | { | 600 | { |
599 | #if DEBUG_DATASTORE | ||
600 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 601 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
601 | "Disconnecting client.\n"); | 602 | _("Forcefully disconnecting client.\n")); |
602 | #endif | ||
603 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 603 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
604 | } | 604 | } |
605 | if (NULL != tc) | 605 | if (NULL != tc) |