diff options
author | t3sserakt <t3ss@posteo.de> | 2021-07-30 14:47:59 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-07-30 14:47:59 +0200 |
commit | 4748af6e8e04347ceaeec09ccdfc04d740fa65f0 (patch) | |
tree | 1d0feeab3254c58b175e1376f72e7e2b92ec222d /src/transport/gnunet-communicator-tcp.c | |
parent | 1a542d67de29d6ed40706ca70988f79bfd00fb38 (diff) | |
download | gnunet-4748af6e8e04347ceaeec09ccdfc04d740fa65f0.tar.gz gnunet-4748af6e8e04347ceaeec09ccdfc04d740fa65f0.zip |
- there are two helper running, but only one is doing the work of both. Therefore connecting peers does not work atm.
Diffstat (limited to 'src/transport/gnunet-communicator-tcp.c')
-rw-r--r-- | src/transport/gnunet-communicator-tcp.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c index 1b838bf9c..fde85923b 100644 --- a/src/transport/gnunet-communicator-tcp.c +++ b/src/transport/gnunet-communicator-tcp.c | |||
@@ -1900,6 +1900,9 @@ queue_read (void *cls) | |||
1900 | BUF_SIZE - queue->cread_off); | 1900 | BUF_SIZE - queue->cread_off); |
1901 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1901 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1902 | "Received %lu bytes from TCP queue\n", rcvd); | 1902 | "Received %lu bytes from TCP queue\n", rcvd); |
1903 | GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG, | ||
1904 | "transport", | ||
1905 | "Received %lu bytes from TCP queue\n", rcvd); | ||
1903 | if (-1 == rcvd) | 1906 | if (-1 == rcvd) |
1904 | { | 1907 | { |
1905 | if ((EAGAIN != errno) && (EINTR != errno)) | 1908 | if ((EAGAIN != errno) && (EINTR != errno)) |
@@ -2675,6 +2678,9 @@ proto_read_kx (void *cls) | |||
2675 | sizeof(pq->ibuf) - pq->ibuf_off); | 2678 | sizeof(pq->ibuf) - pq->ibuf_off); |
2676 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2679 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2677 | "Received %lu bytes for KX\n", rcvd); | 2680 | "Received %lu bytes for KX\n", rcvd); |
2681 | GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG, | ||
2682 | "transport", | ||
2683 | "Received %lu bytes for KX\n", rcvd); | ||
2678 | if (-1 == rcvd) | 2684 | if (-1 == rcvd) |
2679 | { | 2685 | { |
2680 | if ((EAGAIN != errno) && (EINTR != errno)) | 2686 | if ((EAGAIN != errno) && (EINTR != errno)) |
@@ -2824,6 +2830,10 @@ queue_read_kx (void *cls) | |||
2824 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2830 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2825 | "Received %lu bytes for KX\n", | 2831 | "Received %lu bytes for KX\n", |
2826 | rcvd); | 2832 | rcvd); |
2833 | GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG, | ||
2834 | "transport", | ||
2835 | "Received %lu bytes for KX\n", | ||
2836 | rcvd); | ||
2827 | if (-1 == rcvd) | 2837 | if (-1 == rcvd) |
2828 | { | 2838 | { |
2829 | if ((EAGAIN != errno) && (EINTR != errno)) | 2839 | if ((EAGAIN != errno) && (EINTR != errno)) |
@@ -2918,6 +2928,9 @@ mq_init (void *cls, const struct GNUNET_PeerIdentity *peer, const char *address) | |||
2918 | 2928 | ||
2919 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2929 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2920 | "Connecting to %s\n", address); | 2930 | "Connecting to %s\n", address); |
2931 | GNUNET_log_from_nocheck (GNUNET_ERROR_TYPE_DEBUG, | ||
2932 | "transport", | ||
2933 | "Connecting to %s\n", address); | ||
2921 | if (0 != strncmp (address, | 2934 | if (0 != strncmp (address, |
2922 | COMMUNICATOR_ADDRESS_PREFIX "-", | 2935 | COMMUNICATOR_ADDRESS_PREFIX "-", |
2923 | strlen (COMMUNICATOR_ADDRESS_PREFIX "-"))) | 2936 | strlen (COMMUNICATOR_ADDRESS_PREFIX "-"))) |
@@ -3238,7 +3251,7 @@ init_socket (struct sockaddr *addr, | |||
3238 | return GNUNET_SYSERR; | 3251 | return GNUNET_SYSERR; |
3239 | } | 3252 | } |
3240 | 3253 | ||
3241 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3254 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
3242 | "address %s\n", | 3255 | "address %s\n", |
3243 | GNUNET_a2s (addr, in_len)); | 3256 | GNUNET_a2s (addr, in_len)); |
3244 | 3257 | ||