summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-14 15:50:47 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-15 17:14:13 +0100
commit05246ae6238483eff759897d8a6aa9be7f49529f (patch)
tree22b7b29519251d9a819453632c515c72a1803815
parent88dd90d9288e49c33f4e8d528bf109a40fc997d8 (diff)
downloadsamba-05246ae6238483eff759897d8a6aa9be7f49529f.tar.gz
samba-05246ae6238483eff759897d8a6aa9be7f49529f.tar.bz2
samba-05246ae6238483eff759897d8a6aa9be7f49529f.zip
s3:smb2_create: defer STATUS_PENDING for 2 seconds as before
metze
-rw-r--r--source3/smbd/smb2_create.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index fb7ec291ce..6d7d4ac5db 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -244,7 +244,13 @@ NTSTATUS smbd_smb2_request_process_create(struct smbd_smb2_request *smb2req)
}
tevent_req_set_callback(tsubreq, smbd_smb2_request_create_done, smb2req);
- return smbd_smb2_request_pending_queue(smb2req, tsubreq, 500);
+ /*
+ * 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);
}
static uint64_t get_mid_from_smb2req(struct smbd_smb2_request *smb2req)