gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r31711 - gnunet/src/transport
Date: Mon, 23 Dec 2013 18:40:34 +0100

Author: grothoff
Date: 2013-12-23 18:40:34 +0100 (Mon, 23 Dec 2013)
New Revision: 31711

Modified:
   gnunet/src/transport/plugin_transport_http_client.c
Log:
-add assertions on non-existing sessions

Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2013-12-23 17:11:30 UTC 
(rev 31710)
+++ gnunet/src/transport/plugin_transport_http_client.c 2013-12-23 17:40:34 UTC 
(rev 31711)
@@ -477,8 +477,7 @@
   /* lookup if session is really existing */
   if (GNUNET_YES != client_exist_session (plugin, s))
   {
-    GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING, plugin->name,
-                     "Trying to send with invalid session %p \n", s);
+    GNUNET_break (0);
     return GNUNET_SYSERR;
   }
 
@@ -1758,6 +1757,7 @@
   return http_common_plugin_address_to_string (cls, PLUGIN_NAME, addr, 
addrlen);
 }
 
+
 static void
 http_client_plugin_update_session_timeout (void *cls,
                                   const struct GNUNET_PeerIdentity *peer,
@@ -1767,8 +1767,10 @@
 
   /* lookup if session is really existing */
   if (GNUNET_YES != client_exist_session (plugin, session))
+  {
+    GNUNET_break (0);
     return;
-
+  }
   client_reschedule_session_timeout (session);
 }
 




reply via email to

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