no log, no dummy
authorChristian Grothoff <christian@grothoff.org>
Wed, 17 Feb 2010 22:18:38 +0000 (22:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 17 Feb 2010 22:18:38 +0000 (22:18 +0000)
src/core/core_api.c
src/core/gnunet-service-core.c

index 39c81a90d9456c07093b847b7d142fcad53bd1b8..2179cf0e0082b6773b006c9ffc8749346f76af00 100644 (file)
@@ -276,8 +276,6 @@ timeout_request (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct GNUNET_CORE_TransmitHandle *th = cls;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-             "Transmission request timed out.\n");
   th->timeout_task = GNUNET_SCHEDULER_NO_TASK;
   GNUNET_assert (0 == th->get_message (th->get_message_cls, 0, NULL));
 }
@@ -298,10 +296,7 @@ request_start (void *cls, size_t size, void *buf)
   struct GNUNET_CORE_Handle *h = cls;
   struct GNUNET_CORE_TransmitHandle *th;
   size_t ret;
-#if DEBUG_CORE
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "request_start called\n");
-#endif
+
   h->th = NULL;
   th = h->pending_head;
   if (buf == NULL)
index afb7095d90db90b163ba1b308dfefd270e3b5f3f..c131130f8819957b5e804ccd2a16054584e3d78d 100644 (file)
@@ -2045,13 +2045,9 @@ static size_t
 notify_transport_connect_done (void *cls, size_t size, void *buf)
 {
   struct Neighbour *n = cls;
-  struct GNUNET_MessageHeader hdr;
-
   n->th = NULL;
-  hdr.type = htons (GNUNET_MESSAGE_TYPE_TOPOLOGY_DUMMY);
-  hdr.size = htons (sizeof(hdr));
-  memcpy (buf, &hdr, sizeof (hdr));
-  return sizeof (hdr);
+  send_key (n);
+  return 0;
 }