mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3:smb2_create: send interim responses after 0.5 milliseconds
We don't have to care about delayed NT_STATUS_SHARING_VIOLATION anymore
after the following commit:
commit 4111fcfd4f
Author: Jeremy Allison <jra@samba.org>
Date: Thu May 2 11:12:47 2013 -0700
Only do the 1 second delay for sharing violations for SMB1, not SMB2.
Match Windows behavior.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
334089c101
commit
fe0ad5c668
@ -241,13 +241,7 @@ NTSTATUS smbd_smb2_request_process_create(struct smbd_smb2_request *smb2req)
|
||||
}
|
||||
tevent_req_set_callback(tsubreq, smbd_smb2_request_create_done, smb2req);
|
||||
|
||||
/*
|
||||
* For now we keep the logic that we do not send STATUS_PENDING
|
||||
* for sharing violations, so we just wait 2 seconds.
|
||||
*
|
||||
* TODO: we need more tests for this.
|
||||
*/
|
||||
return smbd_smb2_request_pending_queue(smb2req, tsubreq, 2000000);
|
||||
return smbd_smb2_request_pending_queue(smb2req, tsubreq, 500);
|
||||
}
|
||||
|
||||
static uint64_t get_mid_from_smb2req(struct smbd_smb2_request *smb2req)
|
||||
|
Loading…
Reference in New Issue
Block a user