smb2_server: add and use a function that calculated the remaining channels
authorStefan Metzmacher <metze@samba.org>
Fri, 4 Oct 2019 12:49:59 +0000 (14:49 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 15 May 2020 09:04:36 +0000 (09:04 +0000)
commit26ba013e279769b39e6bac510cb4b2d6d801ac98
tree17eee4e40368bb7e25760b0a39fa75357a19600a
parenta87c9a92df675173fc28404819d8dc0303eb81af
smb2_server: add and use a function that calculated the remaining channels

This is useful for debugging, but also simplies the following changes,
where client->connections may hold disconnected connections until
all pending requests are finished.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/smbd/smb2_server.c