diff options
author | Jeremy Allison <jra@samba.org> | 2001-01-30 00:37:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-01-30 00:37:12 +0000 |
commit | 8e18bd58f7706ffa17f826074689a6354c0f15ba (patch) | |
tree | dd18da73f114f00fdbccd193f2d4092d2e4c9cc1 /source3/smbd | |
parent | 2506c61ab3bd667d54c5e004cc80ce5e40643b5d (diff) | |
download | samba-8e18bd58f7706ffa17f826074689a6354c0f15ba.tar.gz samba-8e18bd58f7706ffa17f826074689a6354c0f15ba.tar.bz2 samba-8e18bd58f7706ffa17f826074689a6354c0f15ba.zip |
Fix inspited by Alan Romeril. 50% speedup in domain logins with this
change to default break response time of 10ms -> 0ms.
Jeremy.
(This used to be commit 541c7df16fff03f98c253a46b501574cafb4469f)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/oplock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c index 366b4d0fec..4f26eaf7f2 100644 --- a/source3/smbd/oplock.c +++ b/source3/smbd/oplock.c @@ -470,6 +470,9 @@ static void wait_before_sending_break(BOOL local_request) struct timeval cur_tv; long wait_left = (long)lp_oplock_break_wait_time(); + if (wait_left == 0) + return; + GetTimeOfDay(&cur_tv); wait_left -= ((cur_tv.tv_sec - smb_last_time.tv_sec)*1000) + |