smb2_sesssetup: avoid STATUS_PENDING completely on session logoff
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_sesssetup.c

index e3d58d312e4b9ccd86846de5368e1118118110a8..9591a8823dd3f6d36e14fb8fec60132b803c891f 100644 (file)
@@ -1259,10 +1259,10 @@ NTSTATUS smbd_smb2_request_process_logoff(struct smbd_smb2_request *req)
        tevent_req_set_callback(subreq, smbd_smb2_request_logoff_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_logoff_done(struct tevent_req *subreq)