summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton <anton@picapica>2018-12-14 22:42:23 +0400
committerAnton <anton@picapica>2018-12-14 22:42:23 +0400
commit2f2593e0c597fb17ec0ca0a53fc0ed60fbee52df (patch)
tree6c8cd178a5500212a955f32d2751b6f48ccb4092
parent0b6656e30c83a328e2b70c0802584e98b1da0a40 (diff)
downloadpica-pica-2f2593e0c597fb17ec0ca0a53fc0ed60fbee52df.tar.gz
pica-pica-2f2593e0c597fb17ec0ca0a53fc0ed60fbee52df.zip
pica-node: improved debug messages, print what type of connection is closed
-rw-r--r--PICA_node.c10
1 files 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;