s4-torture: Add handlers to ignore incoming oplock/lease break requests
authorSachin Prabhu <sprabhu@redhat.com>
Sat, 16 Mar 2019 12:25:07 +0000 (12:25 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 19 Apr 2019 17:27:13 +0000 (17:27 +0000)
commit4e685895ea1395c53c1ef68259760a1aaf2a7fc1
tree5bc2eee8c7f391348de3ba07962420b9f29a7f55
parente1a96b1a5cf4e793cf321b3c777deb4e3e821f99
s4-torture: Add handlers to ignore incoming oplock/lease break requests

For use in multichannel oplock break tests. These handers ignore
incoming oplock and lease break requests so that we can test the
oplock/lease break retries on the server.

This is meant for use with samba servers which rely on receiving a reply
from the client before timeout.
Windows servers rely on underlying tcp commands to decide if the oplock
break command was delivered successfully to the client and therefore
cannot be tested with this method.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/lease_break_handler.c
source4/torture/smb2/lease_break_handler.h
source4/torture/smb2/oplock_break_handler.c
source4/torture/smb2/oplock_break_handler.h