From c870ae8b898d3bcc81ed9fd1afd505d78dea52cc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 4 Nov 2004 11:28:38 +0000 Subject: r3528: added support for the SMBntcancel() operation, which cancels any outstanding async operation (triggering an immediate timeout). pvfs now passes the RAW-MUX test (This used to be commit 3423e2f41461d054067ef168b9b986f62cc8f77c) --- source4/torture/raw/mux.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/torture/raw/mux.c') diff --git a/source4/torture/raw/mux.c b/source4/torture/raw/mux.c index c02045817e..7dddd0602c 100644 --- a/source4/torture/raw/mux.c +++ b/source4/torture/raw/mux.c @@ -252,6 +252,10 @@ static BOOL test_mux_lock(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) /* cancel the blocking lock */ smb_raw_ntcancel(req); + /* the 2nd cancel is totally harmless, but tests the server trying to + cancel an already cancelled request */ + smb_raw_ntcancel(req); + lock[0].pid = 1; io.lockx.in.ulock_cnt = 1; io.lockx.in.lock_cnt = 0; -- cgit