From bd8e94679cb54749ae9574e37a86dfb445c1c9af Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 6 May 2010 12:30:54 +0000 Subject: [PATCH] verbose errors to help debug arm problems... --- src/util/service.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/util/service.c b/src/util/service.c index 8597fddf6..ba2db383c 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -578,8 +578,8 @@ transmit_shutdown_deny (void *cls, size_t size, void *buf) if (size < sizeof (struct GNUNET_MessageHeader)) { - return 0; /* client disconnected */ GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); + return 0; /* client disconnected */ } msg = (struct GNUNET_MessageHeader *) buf; msg->type = htons (GNUNET_MESSAGE_TYPE_SHUTDOWN_REFUSE); @@ -597,10 +597,15 @@ transmit_shutdown_ack (void *cls, size_t size, void *buf) if (size < sizeof (struct GNUNET_MessageHeader)) { - return 0; /* client disconnected */ + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + _("Failed to transmit shutdown ACK.\n")); GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); + return 0; /* client disconnected */ } + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + _("Transmitting shutdown ACK.\n")); + msg = (struct GNUNET_MessageHeader *) buf; msg->type = htons (GNUNET_MESSAGE_TYPE_SHUTDOWN_ACK); msg->size = htons (sizeof (struct GNUNET_MessageHeader)); -- 2.25.1