summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2012-01-24 11:51:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-25 18:11:45 +0100
commitd3a183c329b6875b59086962a3a2197131e5c39b (patch)
tree64f8f033e2e99fe5361e70efcf459ca835fe11b0 /net
parent79b385b01731ca585bc67baae2e847505f9d8c70 (diff)
downloadbarebox-d3a183c329b6875b59086962a3a2197131e5c39b.tar.gz
barebox-d3a183c329b6875b59086962a3a2197131e5c39b.tar.xz
net/nfs: increase timeout to 15 seconds
On my laptop with avahi enabled (linux mdns implementation), the unmount take quite long, because the avahi daemon tries to resolve the client's host name. This leads to a delay of about 8 seconds of the unmount reply messages, so that barebox runs into a timeout. This patch increases the NFS timeout to 15 to work around the problem. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfs.c b/net/nfs.c
index 0a4b787e8b..f6cbc7c3c8 100644
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -124,7 +124,7 @@ struct rpc_t {
} u;
};
-#define NFS_TIMEOUT 1
+#define NFS_TIMEOUT 15
static unsigned long rpc_id = 0;
static int nfs_offset = -1;