From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Paul B. Henson" <henson@acm.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: NFS over TCP idle timeout
Date: Mon, 28 Jan 2008 19:32:23 -0500 [thread overview]
Message-ID: <20080129003223.GC16785@fieldses.org> (raw)
In-Reply-To: <Pine.GSO.4.55.0801251516550.21-z2goPYwGszwoNljnaZt3ZkHinNCOp9DfhYY8Ac/fI6A@public.gmane.org>
On Fri, Jan 25, 2008 at 04:41:00PM -0800, Paul B. Henson wrote:
>
> Does the Linux server implementation of NFS over TCP implement an idle
> timeout that automatically disconnects clients after some amount of
> inactivity?
>
> I was testing NFSv4 from a Solaris 10 client to a Linux server (Gentoo,
> 2.6.20). The Solaris client does not tear down the TCP connection upon
> system shutdown, which leaves an orphaned established TCP connection on the
> server. The connection remained in the established state for days.
>
> Sun support indicates their server automatically disconnects idle clients,
> and don't consider not closing the client connection upon shutdown a bug.
>
> I didn't find any documentation regarding the Linux implementation and idle
> timeouts, although I did find the following code in net/sunrpc/svcsock.c:
>
> -----
> /* apparently the "standard" is that clients close
> * idle connections after 5 minutes, servers after
> * 6 minutes
> * http://www.connectathon.org/talks96/nfstcp.pdf
> */
> static int svc_conn_age_period = 6*60;
> -----
>
> that would seem to indicate it should close the connection after some
> amount of idle time? However, empirically that doesn't seem to happen.
>
> Should idle connections automatically be closed? Are there any tunables or
> switches that need to be touched to enable that?
That sounds like a server bug to me. Have you checked whether it still
behaves that way on more recent kernels?
--b.
next prev parent reply other threads:[~2008-01-29 0:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-26 0:41 NFS over TCP idle timeout Paul B. Henson
[not found] ` <Pine.GSO.4.55.0801251516550.21-z2goPYwGszwoNljnaZt3ZkHinNCOp9DfhYY8Ac/fI6A@public.gmane.org>
2008-01-29 0:32 ` J. Bruce Fields [this message]
2008-01-29 3:33 ` Paul B. Henson
2008-01-29 3:57 ` Greg Banks
[not found] ` <20080129035731.GA42391370-WP8ATAqLPZFHNW7Ns3LnmGRHvnxUvMa2@public.gmane.org>
2008-01-29 21:53 ` Paul B. Henson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080129003223.GC16785@fieldses.org \
--to=bfields@fieldses.org \
--cc=henson@acm.org \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.