0.9.0pre0 [April]:
-* NAT: peer behind NAT fails to bootstrap: we never get a session key from the other peer
- (but we DO get a PONG to our PING!) [CG]
+* TRANSPORT: inbound sessions are not properly PING-PONG validated,
+ connect-event is then not properly signalled (peer behind NAT
+ never gets a 'connect' message) and finally we DO transmit
+ data messages over the invalidated, only half-connect-signalled
+ channel (which confuses the core state machine, or now causes
+ transport-api assertion failures). [CG]
* FS-acceptance testing [CG]
* Release checks:
- portability
#endif
return; /* already in progress */
}
- if (! n->is_connected)
+ if (GNUNET_YES != n->is_connected)
{
+#if DEBUG_CORE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Not yet connected to peer `%4s'!\n",
+ GNUNET_i2s (&n->peer));
+#endif
if (NULL == n->th)
{
GNUNET_STATISTICS_update (stats,
#define GNUNET_SIGNATURE_PURPOSE_TEST 0
/**
- * Signature for confirming HELLOs for TCP plugins.
+ * Signature for confirming HELLOs for transport.
*/
-#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_TCP_PING 1
+#define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PING 1
/**
}
#if DEBUG_PEERINFO
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Received information about peer `%s' from peerinfo database\n",
+ "Received %u bytes of `%s' information about peer `%s' from PEERINFO database\n",
+ (hello == NULL) ? 0 : (unsigned int) GNUNET_HELLO_size (hello),
+ "HELLO",
GNUNET_i2s (&im->peer));
#endif
-#if DEBUG_PEERINFO
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Size of `%s' is %u bytes\n",
- "HELLO",
- (hello == NULL) ? 0 : (unsigned int) GNUNET_HELLO_size (hello));
-#endif
ic->callback (ic->callback_cls, &im->peer, hello, ntohl (im->trust));
GNUNET_CLIENT_receive (ic->client,
&info_handler,