- from time to time core likes to monologize
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 27 Apr 2012 07:43:42 +0000 (07:43 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 27 Apr 2012 07:43:42 +0000 (07:43 +0000)
src/integration-tests/connection_watchdog.c

index cb5ccc23614542db2b9a265cb0d697480c2848c0..215d045ab2465431ffa43cc7feb6312e8be60229 100644 (file)
@@ -35,8 +35,8 @@
 #include "gnunet_statistics_service.h"
 
 
-#define CHECK_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
-#define STATS_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
+#define CHECK_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
+#define STATS_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
 #define REPEATED_STATS_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
 #define STATS_VALUES 4
 
@@ -869,13 +869,13 @@ core_notify_receive_cb (void *cls,
 
   pc = GNUNET_CONTAINER_multihashmap_get(peers, &peer->hashPubKey);
 
-  if (NULL == pc)
+  if ((NULL == pc) && (0 != memcmp (peer, &my_peer_id, sizeof (my_peer_id))))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected message type %u from unknown peer `%s'\n",
         ntohs (message->type),
         GNUNET_i2s (peer));
 
-
+    GNUNET_break (0);
     return GNUNET_OK;
   }