[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1728 - in GNUnet/src: applications/transport transports
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1728 - in GNUnet/src: applications/transport transports |
Date: |
Wed, 17 Aug 2005 20:56:30 -0700 (PDT) |
Author: grothoff
Date: 2005-08-17 20:56:29 -0700 (Wed, 17 Aug 2005)
New Revision: 1728
Modified:
GNUnet/src/applications/transport/transport.c
GNUnet/src/transports/tcp.c
Log:
fewer
Modified: GNUnet/src/applications/transport/transport.c
===================================================================
--- GNUnet/src/applications/transport/transport.c 2005-08-18 03:51:56 UTC
(rev 1727)
+++ GNUnet/src/applications/transport/transport.c 2005-08-18 03:56:29 UTC
(rev 1728)
@@ -55,9 +55,11 @@
FREENONNULL(tapi->helo);
tapi->helo = tapi->createhello();
if (NULL == tapi->helo) {
+#if DEBUG_TRANSPORT
LOG(LOG_INFO,
"Transport '%s' failed to create hello\n",
tapi->transName);
+#endif
MUTEX_UNLOCK(&tapis_lock);
return;
}
@@ -480,9 +482,11 @@
return NULL;
}
if (tapi->helo == NULL) {
+#if DEBUG_TRANSPORT
LOG(LOG_DEBUG,
"Transport of type %d configured for sending only (no hello).\n",
ttype);
+#endif
MUTEX_UNLOCK(&tapis_lock);
return NULL;
}
Modified: GNUnet/src/transports/tcp.c
===================================================================
--- GNUnet/src/transports/tcp.c 2005-08-18 03:51:56 UTC (rev 1727)
+++ GNUnet/src/transports/tcp.c 2005-08-18 03:56:29 UTC (rev 1728)
@@ -1047,8 +1047,12 @@
port = getGNUnetTCPPort();
if (0 == port) {
- LOG(LOG_DEBUG,
- "TCP port is 0, will only send using TCP.\n");
+ static int once = 0;
+ if (once == 0) {
+ once = 1;
+ LOG(LOG_DEBUG,
+ "TCP port is 0, will only send using TCP.\n");
+ }
return NULL; /* TCP transport is configured SEND-only! */
}
msg = (P2P_hello_MESSAGE *) MALLOC(sizeof(P2P_hello_MESSAGE) +
sizeof(HostAddress));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1728 - in GNUnet/src: applications/transport transports,
grothoff <=