aboutsummaryrefslogtreecommitdiff
path: root/src/util/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/connection.c')
-rw-r--r--src/util/connection.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index 6f2b5a349..3cf2ae475 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -527,6 +527,11 @@ destroy_continuation (void *cls,
527 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (sock->sock)); 527 GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (sock->sock));
528 GNUNET_free_non_null (sock->addr); 528 GNUNET_free_non_null (sock->addr);
529 GNUNET_free_non_null (sock->hostname); 529 GNUNET_free_non_null (sock->hostname);
530#if DEBUG_CONNECTION
531 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
532 "Freeing memory of connection %p.\n",
533 sock);
534#endif
530 GNUNET_free (sock); 535 GNUNET_free (sock);
531} 536}
532 537
@@ -774,7 +779,8 @@ try_connect_using_address (void *cls,
774 { 779 {
775#if DEBUG_CONNECTION 780#if DEBUG_CONNECTION
776 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 781 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
777 "Connection has already been destroyed.\n"); 782 "Connection %p has already been destroyed.\n",
783 h);
778#endif 784#endif
779 return; /* already destroyed */ 785 return; /* already destroyed */
780 } 786 }
@@ -1565,6 +1571,11 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct
1565 GNUNET_assert (h->notify_ready != NULL); 1571 GNUNET_assert (h->notify_ready != NULL);
1566 if (0 != (h->sh->ccs & COCO_TRANSMIT_READY)) 1572 if (0 != (h->sh->ccs & COCO_TRANSMIT_READY))
1567 { 1573 {
1574#if DEBUG_CONNECTION
1575 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1576 "notify_transmit_ready_cancel cancels timeout_task (%p)\n",
1577 h);
1578#endif
1568 GNUNET_SCHEDULER_cancel (h->sh->sched, h->timeout_task); 1579 GNUNET_SCHEDULER_cancel (h->sh->sched, h->timeout_task);
1569 h->timeout_task = GNUNET_SCHEDULER_NO_TASK; 1580 h->timeout_task = GNUNET_SCHEDULER_NO_TASK;
1570 h->sh->ccs -= COCO_TRANSMIT_READY; 1581 h->sh->ccs -= COCO_TRANSMIT_READY;