summaryrefslogtreecommitdiffstats
path: root/support/nfs/nfsclient.c
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2006-12-19 20:16:17 +0900
committerNeil Brown <neilb@suse.de>2006-12-20 06:24:55 +1100
commita68d983fb3b571720eb94f68d56e8849583a2a21 (patch)
tree900c9616a73ccd2b45111b94cda1301a13971a70 /support/nfs/nfsclient.c
parentfd1b52710313d01f537a1afcba1a7a4d67ab8ac7 (diff)
downloadnfs-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 'support/nfs/nfsclient.c')
0 files changed, 0 insertions, 0 deletions