set a maximum name refresh time of 20 minutes.
authorAndrew Tridgell <tridge@samba.org>
Mon, 31 Aug 1998 04:19:31 +0000 (04:19 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 31 Aug 1998 04:19:31 +0000 (04:19 +0000)
commit1d23dd0912e81ff72695bd043e8e2aee32da18a8
tree58a6def46c4596b266f23353e443105b4bf28f05
parent55333edd2eed33961ced4eb4b6898f5ca9ca1820
set a maximum name refresh time of 20 minutes.

The previous code was strictly correct, but not very practical. self
names were only refreshed every 3 days. I hit a situation where the
Samba WINS server was restarted after deleting wins.dat and didn't
notice some remote subnets (also running Samba). I realised that the
complete database wouldn't have been rebuilt for 3 days, which is way
too long. In order to recover from WINS restarts we need a much
shorter maximum refresh time.
source/include/nameserv.h
source/nmbd/nmbd_mynames.c
source/nmbd/nmbd_namelistdb.c