smbd: Add defer_sharing_violation_smb1
authorVolker Lendecke <vl@samba.org>
Tue, 30 Jul 2019 12:54:18 +0000 (14:54 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 7 Aug 2019 23:45:50 +0000 (23:45 +0000)
commitc7e110e51afea9a36a060bff62506c53e86c8aab
treede106e1ac66b556b00e15ca8d08dbe4a962af4dc
parent305ea37c81c2eeafb0ae259d4bd319af183a4611
smbd: Add defer_sharing_violation_smb1

This is close to what Windows SMB1 does: Instead of waiting for the
share entry causing the SHARING_VIOLATION to disappear, retry every
200msec up to one second. Windows does it a little differently: Retry
up to 5 times. But up to one second should be close enough.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c
source3/smbd/proto.h