From: Stefan Metzmacher Date: Tue, 12 Feb 2019 07:27:43 +0000 (+0100) Subject: smb2_sesssetup: avoid STATUS_PENDING completely on session logoff X-Git-Tag: tdb-1.4.1~600 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d64038425f250e253dce707d69899c7a5d8cb32e;p=thirdparty%2Fsamba.git smb2_sesssetup: avoid STATUS_PENDING completely on session logoff 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 Reviewed-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index e3d58d312e4..9591a8823dd 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -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)