- fix
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 27 Apr 2012 07:16:06 +0000 (07:16 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 27 Apr 2012 07:16:06 +0000 (07:16 +0000)
src/integration-tests/connection_watchdog.c

index 058732c60d926b1b34a76c9f1ce34810e50bde27..cb5ccc23614542db2b9a265cb0d697480c2848c0 100644 (file)
@@ -230,8 +230,8 @@ check_lowlevel_connections (int port, int protocol)
       break;
   }
 
-
-  GNUNET_asprintf(&cmdline, "netstat -n %s | grep %u", proto, port);
+  /* Use netstat to get a numeric list of all connections on port 'port' in state 'ESTABLISHED' */
+  GNUNET_asprintf(&cmdline, "netstat -n %s | grep %u | grep ESTABLISHED", proto, port);
 
   if (system ("netstat -n > /dev/null 2> /dev/null"))
     if (system ("netstat -n > /dev/null 2> /dev/null") == 0)
@@ -871,7 +871,11 @@ core_notify_receive_cb (void *cls,
 
   if (NULL == pc)
   {
-    GNUNET_break (0);
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected message type %u from unknown peer `%s'\n",
+        ntohs (message->type),
+        GNUNET_i2s (peer));
+
+
     return GNUNET_OK;
   }