mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3:smbprofile: track connect_count and disconnect_count
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
970b00e6ac
commit
185c6feab7
@ -27,6 +27,8 @@
|
||||
SMBPROFILE_STATS_START \
|
||||
\
|
||||
SMBPROFILE_STATS_SECTION_START("SMBD loop") \
|
||||
SMBPROFILE_STATS_COUNT(connect) \
|
||||
SMBPROFILE_STATS_COUNT(disconnect) \
|
||||
SMBPROFILE_STATS_BASIC(idle) \
|
||||
SMBPROFILE_STATS_COUNT(request) \
|
||||
SMBPROFILE_STATS_BASIC(push_sec_ctx) \
|
||||
|
@ -3573,6 +3573,8 @@ NTSTATUS smbd_add_connection(struct smbXsrv_client *client, int sock_fd,
|
||||
|
||||
*_xconn = NULL;
|
||||
|
||||
DO_PROFILE_INC(connect);
|
||||
|
||||
xconn = talloc_zero(client, struct smbXsrv_connection);
|
||||
if (xconn == NULL) {
|
||||
DEBUG(0,("talloc_zero(struct smbXsrv_connection)\n"));
|
||||
|
@ -224,6 +224,7 @@ static void exit_server_common(enum server_exit_reason how,
|
||||
next = xconn->next;
|
||||
DLIST_REMOVE(client->connections, xconn);
|
||||
talloc_free(xconn);
|
||||
DO_PROFILE_INC(disconnect);
|
||||
}
|
||||
TALLOC_FREE(client->sconn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user