From 07704006805108641f2391094432d52f0aa78098 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 7 May 2013 12:07:16 -0700 Subject: [PATCH] Only do the 1 second delay for sharing violations for SMB1, not SMB2. Match Windows behavior. Signed-off-by: Jeremy Allison Reviewed-by: Richard Sharpe --- source3/smbd/open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index c5529ec47b7..16ca34a834f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2345,10 +2345,11 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, /* * If we're returning a share violation, ensure we - * cope with the braindead 1 second delay. + * cope with the braindead 1 second delay (SMB1 only). */ if (!(oplock_request & INTERNAL_OPEN_ONLY) && + !conn->sconn->using_smb2 && lp_defer_sharing_violations()) { struct timeval timeout; struct deferred_open_record state; -- 2.11.4.GIT