projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added debug logs for updating stat.clients value
[silc.git]
/
apps
/
silcd
/
packet_receive.c
diff --git
a/apps/silcd/packet_receive.c
b/apps/silcd/packet_receive.c
index e776863e6be5a949af821ba2fa2f3a24328f6f28..0d96f7bbe6f026005ed9f4af246c70ea986ee17a 100644
(file)
--- a/
apps/silcd/packet_receive.c
+++ b/
apps/silcd/packet_receive.c
@@
-326,6
+326,8
@@
static void silc_server_notify_process(SilcServer server,
tmp_len = 128;
/* Update statistics */
tmp_len = 128;
/* Update statistics */
+ SILC_LOG_DEBUG(("stat.clients %d->%d", server->stat.clients,
+ server->stat.clients - 1));
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)
@@
-1246,6
+1248,8
@@
static void silc_server_notify_process(SilcServer server,
}
/* Update statistics */
}
/* Update statistics */
+ SILC_LOG_DEBUG(("stat.clients %d->%d", server->stat.clients,
+ server->stat.clients - 1));
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)
@@
-1492,6
+1496,8
@@
static void silc_server_notify_process(SilcServer server,
}
/* Update statistics */
}
/* Update statistics */
+ SILC_LOG_DEBUG(("stat.clients %d->%d", server->stat.clients,
+ server->stat.clients - 1));
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)
@@
-2686,6
+2692,8
@@
static void silc_server_new_id_real(SilcServer server,
if (idata->conn_type == SILC_CONN_SERVER)
server->stat.cell_clients++;
if (idata->conn_type == SILC_CONN_SERVER)
server->stat.cell_clients++;
+ SILC_LOG_DEBUG(("stat.clients %d->%d", server->stat.clients,
+ server->stat.clients + 1));
server->stat.clients++;
/* Check if anyone is watching this nickname */
server->stat.clients++;
/* Check if anyone is watching this nickname */
@@
-3742,6
+3750,8
@@
void silc_server_resume_client(SilcServer server,
we decremented the count already during detach, thus we'd be undoing
that operation. */
detached_client->local_detached = FALSE;
we decremented the count already during detach, thus we'd be undoing
that operation. */
detached_client->local_detached = FALSE;
+ SILC_LOG_DEBUG(("stat.clients %d->%d", server->stat.clients,
+ server->stat.clients - 1));
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)
SILC_VERIFY(server->stat.clients > 0);
server->stat.clients--;
if (server->stat.cell_clients)