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);
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));
{
struct GNUNET_SERVICE_Context *service = cls;
- /* FIXME: why is this call necessary???? */
GNUNET_SERVER_client_keep(client);
if (!service->allow_shutdown)
{
#endif
((struct sockaddr_in *) saddrs[1])->sin_family = AF_INET;
((struct sockaddr_in *) saddrs[1])->sin_port = htons (port);
-
}
}
*addrs = saddrs;