gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r20865 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r20865 - gnunet/src/transport
Date: Tue, 3 Apr 2012 10:39:27 +0200

Author: wachs
Date: 2012-04-03 10:39:27 +0200 (Tue, 03 Apr 2012)
New Revision: 20865

Modified:
   gnunet/src/transport/plugin_transport_tcp.c
Log:
- additional debug message for mantis 2214


Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2012-04-02 15:43:23 UTC (rev 
20864)
+++ gnunet/src/transport/plugin_transport_tcp.c 2012-04-03 08:39:27 UTC (rev 
20865)
@@ -1850,6 +1850,14 @@
   if (NULL == session)
   {
     /* No inbound session found */
+    void *vaddr;
+    size_t alen;
+    GNUNET_SERVER_client_get_address (client, &vaddr, &alen);
+    GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "tcp",
+                     "Received unexpected %u bytes of type %u from `%s'\n",
+                     (unsigned int) ntohs (message->size),
+                     (unsigned int) ntohs (message->type),
+                     GNUNET_a2s(vaddr, alen));
     GNUNET_break_op (0);
     GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
     return;




reply via email to

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