added more detailed session information messages

This commit is contained in:
Nikos Mavrogiannopoulos
2015-10-23 18:40:06 +02:00
committed by Nikos Mavrogiannopoulos
parent 221b165918
commit 6128b5f061
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ struct proc_st *ctmp;
*/
void remove_proc(main_server_st * s, struct proc_st *proc, unsigned flags)
{
mslog(s, proc, LOG_INFO, "user disconnected");
mslog(s, proc, LOG_INFO, "user disconnected (rx: %lu, tx: %lu)", proc->bytes_in, proc->bytes_out);
list_del(&proc->list);
s->active_clients--;
+2
View File
@@ -1563,6 +1563,7 @@ static int connect_handler(worker_st * ws)
if (req->no_ipv4 != 0 && ip6 == 0)
continue;
oclog(ws, LOG_DEBUG, "adding DNS %s", ws->vinfo.dns[i]);
ret =
cstp_printf(ws, "X-CSTP-DNS: %s\r\n",
ws->vinfo.dns[i]);
@@ -1580,6 +1581,7 @@ static int connect_handler(worker_st * ws)
if (req->no_ipv4 != 0 && ip6 == 0)
continue;
oclog(ws, LOG_DEBUG, "adding NBNS %s", ws->vinfo.nbns[i]);
ret =
cstp_printf(ws, "X-CSTP-NBNS: %s\r\n",
ws->vinfo.nbns[i]);