PHASE #1: (Goal: settle key design questions)
TRANSPORT:
-* testcase fails the first time when run with fresh /tmp\
+* testcase fails the first time when run with fresh /tmp
+ 1) CONNECT fails because no validated HELLO is available
+ (actual validations are scheduled a few cycles later)
+ 2) client waits for SEND_OK, which never comes (due to
+ CONNECT request failing; TCP signals error, but
+ "transmit_send_continuation" in gnunet-service-transport.c
+ does not (and currently has no way to) signal this to
+ the test-process => test-process eventually times out with
+ fatal error
+ 3) in the meantime, gnunet-service-transport validates the
+ HELLOs => testcase passes next time...
Util:
* improve disk API [Nils] (Nils, is this done? -Christian)
#if DEBUG_TCP
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
"tcp",
- "Disconnecting from other peer (session %p).\n", session);
+ "Disconnecting from `%4s' (session %p).\n",
+ GNUNET_i2s(&session->target),
+ session);
#endif
/* remove from session list */
prev = NULL;
GNUNET_SERVER_MAX_MESSAGE_SIZE);
#if DEBUG_TCP
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "tcp", "Connected to other peer.\n");
+ "tcp",
+ "Connecting using address %s.\n",
+ GNUNET_a2s(addr, addrlen));
#endif
return GNUNET_SYSERR;
}
#if DEBUG_TCP
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
"tcp",
- "Connected to other peer, now processing messages.\n");
+ "Connected to , now processing messages.\n",
+ GNUNET_i2s(&session->target));
#endif
process_pending_messages (session);
}
#if DEBUG_TCP
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
"tcp",
- "Failed to connect to other peer, now closing session.\n");
+ "Failed to connect to `%4s' (no working `%s'), closing session.\n",
+ GNUNET_i2s(&session->target),
+ "HELLO");
#endif
disconnect_session (session);
}
#if DEBUG_TCP
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
"tcp",
- "Asked to connect, but have no addresses to try.\n");
+ "Asked to connect to `%4s', but have no addresses to try.\n",
+ GNUNET_i2s(&session->target));
#endif
return;
}
cctx.sa);
#if DEBUG_TCP
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Connected getting client address %p\n", session->client);
+ "Connected to `%4s' for session %p\n",
+ GNUNET_i2s(&session->target),
+ session->client);
#endif
if (session->client == NULL)
{
#if DEBUG_TCP
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
"tcp",
- "Connected to other peer, now sending `%s' message.\n",
+ "Connected to `%4s', now sending `%s' message.\n",
+ GNUNET_i2s(&session->target),
"WELCOME");
#endif
}
#include "gnunet_transport_service.h"
#include "transport.h"
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
#define START_ARM GNUNET_YES
const struct GNUNET_PeerIdentity *peer,
struct GNUNET_TIME_Relative latency)
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer connected to us (%p)!\n", cls);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Peer `%4s' connected to us (%p)!\n",
+ GNUNET_i2s(peer),
+ cls);
GNUNET_assert ((ok >= 1) && (ok <= 6));
OKPP;
}