smb2_tcon: avoid STATUS_PENDING completely on tdis
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Feb 2019 07:27:43 +0000 (08:27 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 28 Mar 2019 23:09:35 +0000 (23:09 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10344
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13698

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_tcon.c

index 5f103807eb35c988c31fb8a6ad07db6c92f3637c..c2a5cbc39aa00af0a37f6b25898d827864d85d4f 100644 (file)
@@ -502,10 +502,10 @@ NTSTATUS smbd_smb2_request_process_tdis(struct smbd_smb2_request *req)
        tevent_req_set_callback(subreq, smbd_smb2_request_tdis_done, req);
 
        /*
-        * Wait a long time before going async on this to allow
-        * requests we're waiting on to finish. Set timeout to 10 secs.
+        * Avoid sending a STATUS_PENDING message, it's very likely
+        * the client won't expect that.
         */
-       return smbd_smb2_request_pending_queue(req, subreq, 10000000);
+       return smbd_smb2_request_pending_queue(req, subreq, 0);
 }
 
 static void smbd_smb2_request_tdis_done(struct tevent_req *subreq)