diff options
author | Ian Kent <raven@themaw.net> | 2006-12-19 20:16:17 +0900 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-12-20 06:24:55 +1100 |
commit | a68d983fb3b571720eb94f68d56e8849583a2a21 (patch) | |
tree | 900c9616a73ccd2b45111b94cda1301a13971a70 /utils/gssd/cacheio.c | |
parent | fd1b52710313d01f537a1afcba1a7a4d67ab8ac7 (diff) | |
download | nfs-utils-a68d983fb3b571720eb94f68d56e8849583a2a21.tar.gz nfs-utils-a68d983fb3b571720eb94f68d56e8849583a2a21.tar.xz nfs-utils-a68d983fb3b571720eb94f68d56e8849583a2a21.zip |
Reduce showmount timeouts.
Showmount itself tries to use a short timeout but
the RPC clnttcp_create and clntudp_create calls will call portmap
internally to get the port to use if it is set to 0 in the passed
address structure. The above calls then use the internal timeouts,
basically 60 seconds, which slows things down. Also the for tcp a
blocking connect is used which can take quite a while to timeout as
well.
showmount tries tcp then udp so a fail can go through several lengthy
waits before failing.
I've grabbed some of the autofs code and put together a patch to allow
specification of the timeouts for the portmap getport and to implement a
non-blocking connect.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/gssd/cacheio.c')
0 files changed, 0 insertions, 0 deletions