summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1999-05-03 19:31:25 +0000
committerJeremy Allison <jra@samba.org>1999-05-03 19:31:25 +0000
commite2c25ee45a5fa827732ff7fe26b724d430d8e816 (patch)
treeff8e9984c6b3c944e726f790f617dd5694d5c8bc
parent6ff73d2c65b50cd8453889edb9c73f7c15d0e491 (diff)
downloadsamba-e2c25ee45a5fa827732ff7fe26b724d430d8e816.tar.gz
Removed the null packet send. This code worked perfectly with IRIX
and kills Win9x clients with a Linux server. I need to go back and check the WinNT traces to make sure of this..... Jeremy.
-rw-r--r--source/smbd/oplock.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source/smbd/oplock.c b/source/smbd/oplock.c
index 0000baa0d67..3f09109ea96 100644
--- a/source/smbd/oplock.c
+++ b/source/smbd/oplock.c
@@ -732,9 +732,6 @@ static BOOL oplock_break(SMB_DEV_T dev, SMB_INO_T inode, struct timeval *tval, B
prepare_break_message( outbuf, fsp, False);
send_smb(Client, outbuf);
- if(get_remote_arch() == RA_WIN95)
- timeout = 200;
-
/* Remember we just sent an oplock break on this file. */
fsp->sent_oplock_break = True;
@@ -764,17 +761,6 @@ static BOOL oplock_break(SMB_DEV_T dev, SMB_INO_T inode, struct timeval *tval, B
if(receive_smb(Client,inbuf, timeout) == False)
{
- /*
- * Win95 specific oplock processing...
- */
-
- if (smb_read_error == READ_TIMEOUT && timeout == 200) {
- send_null_session_msg(Client);
- timeout = ((OPLOCK_BREAK_TIMEOUT/OPLOCK_BREAK_RESENDS) * 1000) -
- ((OPLOCK_BREAK_RESENDS - break_counter)*200);
- continue;
- }
-
/*
* Isaac suggestd that if a MS client doesn't respond to a
* oplock break request then we might try resending
@@ -785,9 +771,6 @@ static BOOL oplock_break(SMB_DEV_T dev, SMB_INO_T inode, struct timeval *tval, B
if (smb_read_error == READ_TIMEOUT && break_counter--) {
DEBUG(0, ( "oplock_break resend\n" ) );
send_smb(Client, outbuf);
-
- if(get_remote_arch() == RA_WIN95)
- timeout = 200;
continue;
}