diff options
author | cel <cel@FreeBSD.org> | 2006-05-23 18:48:07 +0000 |
---|---|---|
committer | cel <cel@FreeBSD.org> | 2006-05-23 18:48:07 +0000 |
commit | 8b94e52728439f07b7a9ffe214dd9da993e94b20 (patch) | |
tree | 68e06f45da996223cc7b1442448c81d3941b537b /sys/nfsclient/nfs.h | |
parent | ec80996e6b2ebfba48c19d243ad3fd4f810cd75c (diff) | |
download | FreeBSD-src-8b94e52728439f07b7a9ffe214dd9da993e94b20.zip FreeBSD-src-8b94e52728439f07b7a9ffe214dd9da993e94b20.tar.gz |
NFS over TCP retransmit behavior should default to a 60 second time out,
mimicing the NFS reference implementation.
NFS over TCP does not need fast retransmit timeouts, since network loss
and congestion are managed by the transport (TCP), unlike with NFS over
UDP. A long timeout prevents the unnecessary retransmission of non-
idempotent NFS requests.
Reviewed by: mohans, silby, rees?
Sponsored by: Network Appliance, Incorporated
Diffstat (limited to 'sys/nfsclient/nfs.h')
-rw-r--r-- | sys/nfsclient/nfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index 9dc34a7..a87966d 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -53,7 +53,8 @@ #define NFS_MAXTIMEO (60 * NFS_HZ) /* Max timeout to backoff to */ #define NFS_MINIDEMTIMEO (5 * NFS_HZ) /* Min timeout for non-idempotent ops*/ #define NFS_MAXREXMIT 100 /* Stop counting after this many */ -#define NFS_RETRANS 10 /* Num of retrans for soft mounts */ +#define NFS_RETRANS 10 /* Num of retrans for UDP soft mounts */ +#define NFS_RETRANS_TCP 2 /* Num of retrans for TCP soft mounts */ #define NFS_MAXGRPS 16 /* Max. size of groups list */ #ifndef NFS_MINATTRTIMO #define NFS_MINATTRTIMO 3 /* VREG attrib cache timeout in sec */ |