From 171087a499531bf529fe800de73e0e10ecdcc6f7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 8 May 2013 11:50:32 -0700 Subject: [PATCH] Only do the 1 second delay for sharing violations for SMB1, not SMB2. Match Windows behavior. Signed-off-by: Jeremy Allison --- 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 d10b6978be6..447de808e4c 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2002,10 +2002,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