From: Stefan Metzmacher Date: Tue, 12 Feb 2019 07:27:43 +0000 (+0100) Subject: smb2_tcon: avoid STATUS_PENDING completely on tdis X-Git-Tag: tdb-1.4.1~599 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dc002548336b969979c3bf85b531c059d87f015;p=thirdparty%2Fsamba.git smb2_tcon: avoid STATUS_PENDING completely on tdis 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_tcon.c b/source3/smbd/smb2_tcon.c index 5f103807eb3..c2a5cbc39aa 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -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)