From 2f2593e0c597fb17ec0ca0a53fc0ed60fbee52df Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 14 Dec 2018 22:42:23 +0400 Subject: pica-node: improved debug messages, print what type of connection is closed --- PICA_node.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PICA_node.c b/PICA_node.c index 0113bab..bcc2a3e 100644 --- a/PICA_node.c +++ b/PICA_node.c @@ -1114,7 +1114,7 @@ void cclink_list_delete(struct cclink *l) { SHUTDOWN(l->sck_p1); CLOSE(l->sck_p1); - PICA_debug2("closed socket %i", l->sck_p1); + PICA_debug2("closed c2c socket %i", l->sck_p1); } }//caller_id is stored in p1 structure else @@ -1126,7 +1126,7 @@ void cclink_list_delete(struct cclink *l) { SHUTDOWN(l->sck_p2); CLOSE(l->sck_p2); - PICA_debug2("closed socket %i", l->sck_p2); + PICA_debug2("closed c2c socket %i", l->sck_p2); } } else @@ -1796,7 +1796,7 @@ void client_list_delete(struct client* ci) free(ci->w_buf); CLOSE(ci->sck_comm); - PICA_debug2("closed socket %i", ci->sck_comm); + PICA_debug2("closed c2n socket %i", ci->sck_comm); free(ci); } @@ -1904,8 +1904,10 @@ void nodelink_list_delete(struct nodelink *n) if (n->node_addr) free(n->node_addr); + SSL_free(n->anonssl); + CLOSE(n->sck); - PICA_debug2("closed socket %i", n->sck); + PICA_debug2("closed n2n socket %i", n->sck); if (n->prev) n->prev->next = n->next; -- cgit v1.2.1