Set correct timeouts for oplock break requests
authorSachin Prabhu <sprabhu@redhat.com>
Sat, 24 Mar 2018 00:22:50 +0000 (00:22 +0000)
committerMichael Adam <obnox@samba.org>
Tue, 18 Sep 2018 10:34:38 +0000 (12:34 +0200)
commit16d8d4d51559839e7df89a14e17f69b0cbfc6dbb
tree667d21cf0837d0687263c561e4245b8c723afefe
parent879d785fb3430db76a35df978509adad7e54fc94
Set correct timeouts for oplock break requests

In case of more than one channel configured, set timeout to
OPLOCK_BREAK_TIMEOUT - 5 seconds for main oplock break and if
that fails, 5 seconds for the retry.

For a single channel, stick to OPLOCK_BREAK_TIMEOUT.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
source3/smbd/smb2_server.c