diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-16 07:23:51 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-16 07:23:51 +0000 |
commit | c4855a8e028914281f179bd3bce8fc7cb249eaf7 (patch) | |
tree | dde9dd6c75be27a9c8309b8a80f003484d230b26 /source3 | |
parent | 7a418233e27a21d0177fbc7ac657e9fdf74a0a4a (diff) | |
download | samba-c4855a8e028914281f179bd3bce8fc7cb249eaf7.tar.gz samba-c4855a8e028914281f179bd3bce8fc7cb249eaf7.tar.bz2 samba-c4855a8e028914281f179bd3bce8fc7cb249eaf7.zip |
changed the default "keepalive" value to 300 seconds.
This is more important now that oplocks are being used.
(This used to be commit 7bccd2c360a270df227c140aeecb943d8d187855)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/local.h | 2 | ||||
-rw-r--r-- | source3/param/loadparm.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source3/include/local.h b/source3/include/local.h index 22862a9a1f..d9e12e506b 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -159,6 +159,8 @@ #define LONG_CONNECT_TIMEOUT 30 #define SHORT_CONNECT_TIMEOUT 5 +/* the default netbios keepalive timeout */ +#define DEFAULT_KEEPALIVE 300 /* the directory to sit in when idle */ /* #define IDLE_DIR "/" */ diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 27cbc8c8dd..52914ffd5d 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -89,7 +89,7 @@ extern pstring myname; #define LP_SNUM_OK(iService) (((iService) >= 0) && ((iService) < iNumServices) && iSERVICE(iService).valid) #define VALID(i) iSERVICE(i).valid -int keepalive=0; +int keepalive=DEFAULT_KEEPALIVE; extern BOOL use_getwd_cache; extern int extra_time_offset; |