aboutsummaryrefslogtreecommitdiff
path: root/src/psyc/gnunet-service-psyc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psyc/gnunet-service-psyc.c')
-rw-r--r--src/psyc/gnunet-service-psyc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/psyc/gnunet-service-psyc.c b/src/psyc/gnunet-service-psyc.c
index e20b2280e..070fd8e47 100644
--- a/src/psyc/gnunet-service-psyc.c
+++ b/src/psyc/gnunet-service-psyc.c
@@ -1,4 +1,3 @@
1
2/* 1/*
3 * This file is part of GNUnet 2 * This file is part of GNUnet
4 * Copyright (C) 2013 Christian Grothoff (and other contributing authors) 3 * Copyright (C) 2013 Christian Grothoff (and other contributing authors)
@@ -534,7 +533,7 @@ cleanup_slave (struct Slave *slv)
534static void 533static void
535cleanup_channel (struct Channel *chn) 534cleanup_channel (struct Channel *chn)
536{ 535{
537 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 536 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
538 "%p Cleaning up channel %s. master? %u\n", 537 "%p Cleaning up channel %s. master? %u\n",
539 chn, GNUNET_h2s (&chn->pub_key_hash), chn->is_master); 538 chn, GNUNET_h2s (&chn->pub_key_hash), chn->is_master);
540 message_queue_drop (chn); 539 message_queue_drop (chn);
@@ -569,7 +568,6 @@ client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
569 568
570 struct Channel * 569 struct Channel *
571 chn = GNUNET_SERVER_client_get_user_context (client, struct Channel); 570 chn = GNUNET_SERVER_client_get_user_context (client, struct Channel);
572 chn->is_disconnected = GNUNET_YES;
573 571
574 if (NULL == chn) 572 if (NULL == chn)
575 { 573 {
@@ -584,6 +582,8 @@ client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
584 chn, (GNUNET_YES == chn->is_master) ? "master" : "slave", 582 chn, (GNUNET_YES == chn->is_master) ? "master" : "slave",
585 GNUNET_h2s (&chn->pub_key_hash)); 583 GNUNET_h2s (&chn->pub_key_hash));
586 584
585 chn->is_disconnected = GNUNET_YES;
586
587 struct Client *cli = chn->clients_head; 587 struct Client *cli = chn->clients_head;
588 while (NULL != cli) 588 while (NULL != cli)
589 { 589 {
@@ -1548,9 +1548,11 @@ mcast_recv_request (void *cls,
1548 struct Master *mst = cls; 1548 struct Master *mst = cls;
1549 uint16_t size = ntohs (req->header.size); 1549 uint16_t size = ntohs (req->header.size);
1550 1550
1551 char *str = GNUNET_CRYPTO_ecdsa_public_key_to_string (&req->member_key);
1551 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1552 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1552 "%p Received multicast request of size %u.\n", 1553 "%p Received multicast request of size %u from %s.\n",
1553 mst, size); 1554 mst, size, str);
1555 GNUNET_free (str);
1554 1556
1555 uint16_t first_ptype = 0, last_ptype = 0; 1557 uint16_t first_ptype = 0, last_ptype = 0;
1556 if (GNUNET_SYSERR 1558 if (GNUNET_SYSERR