gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21187 - gnunet/src/integration-tests


From: gnunet
Subject: [GNUnet-SVN] r21187 - gnunet/src/integration-tests
Date: Fri, 27 Apr 2012 09:16:06 +0200

Author: wachs
Date: 2012-04-27 09:16:06 +0200 (Fri, 27 Apr 2012)
New Revision: 21187

Modified:
   gnunet/src/integration-tests/connection_watchdog.c
Log:
- fix


Modified: gnunet/src/integration-tests/connection_watchdog.c
===================================================================
--- gnunet/src/integration-tests/connection_watchdog.c  2012-04-26 22:41:37 UTC 
(rev 21186)
+++ gnunet/src/integration-tests/connection_watchdog.c  2012-04-27 07:16:06 UTC 
(rev 21187)
@@ -230,9 +230,9 @@
       break;
   }
 
+  /* 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);
 
-  GNUNET_asprintf(&cmdline, "netstat -n %s | grep %u", proto, port);
-
   if (system ("netstat -n > /dev/null 2> /dev/null"))
     if (system ("netstat -n > /dev/null 2> /dev/null") == 0)
       f = popen (cmdline, "r");
@@ -871,7 +871,11 @@
 
   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;
   }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]