From: Jeremy Allison Date: Mon, 8 Jul 2019 21:56:13 +0000 (-0700) Subject: s3: smbd: Don't idle SMB1 directory scans after DPTR_IDLE_TIMEOUT. X-Git-Tag: talloc-2.3.0~143 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=609c9a58cebd27c2b3ed2c73a8b9dd1b8880a895;p=thirdparty%2Fsamba.git s3: smbd: Don't idle SMB1 directory scans after DPTR_IDLE_TIMEOUT. Only broken SMB1 clients leave directory scans hanging and we shouldn't support that. Signed-off-by: Jeremy Allison Reviewed-by: Andreas Schneider --- diff --git a/source3/smbd/conn_idle.c b/source3/smbd/conn_idle.c index 52fa3ef2afa..8fa42b2dd63 100644 --- a/source3/smbd/conn_idle.c +++ b/source3/smbd/conn_idle.c @@ -69,11 +69,6 @@ bool conn_idle_all(struct smbd_server_connection *sconn, time_t t) return false; } - /* close dirptrs on connections that are idle */ - if (age > DPTR_IDLE_TIMEOUT) { - dptr_idlecnum(conn); - } - if (conn->num_files_open > 0 || age < deadtime) { return false; }