Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: "Christopher R. Hertel" <crh-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
Cc: Volker.Lendecke-PS7XAnAlDA+VvDNblw4Uiw@public.gmane.org,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	cifs-protocol-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org,
	samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.org
Subject: Re: [cifs-protocol] cifs client timeouts and hard/soft mounts
Date: Sat, 04 Dec 2010 14:04:13 -0600	[thread overview]
Message-ID: <4CFA9EBD.8090708@samba.org> (raw)
In-Reply-To: <20101204064452.46ac24c7-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>

Jeff Layton wrote:
> On Sat, 4 Dec 2010 09:13:21 +0100
> Volker Lendecke <Volker.Lendecke-PS7XAnAlDA+VvDNblw4Uiw@public.gmane.org> wrote:
> 
>> On Fri, Dec 03, 2010 at 09:54:13PM -0600, Christopher R. Hertel wrote:
>>> That may seem to be in the "who cares" category, since those old transports
>>> are essentially dead (much more dead than NBT, or even NBF).  Unfortunately,
>>> the code to handle the old transports is still there in Windows, so there
>>> are behaviors -- things like the timeouts you're talking about and the weird
>>> VC=0 shutdown behvior -- that exist because of these old disused transports.
>> VC=0, how does Windows treat this facing NAT (masquerading)
>> networks? I've done tests in the past where Windows killed
>> valid connections from behind a NAT box when a new client
>> came in.
>>
>> Volker
> 
> It seems like the best way to deal with this on the server side with
> direct hosted TCP would be to treat VC=0 like any other VC number
> (MS-CIFS says that this is allowed).

The reasoning behind the VC=0 behavior does not apply to any contemporary
transport, so there is no reason to enforce that behavior.

> Ideally any new connection event from a host however should make the
> server check the validity of any other connection from the same host.
> That way you could release resources held by dead connections in case
> the new one is a reconnect and needs to reclaim state.

That's overkill, I think.  The transport, as you mention below, will take
care of dropped connections in due time.

> The question is how to check that validity. Unfortunately, the best you
> can probably do is rely on TCP keepalives.

...and that's probably the best you want to do.

Chris -)-----

-- 
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/     -)-----   Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/   -)-----   ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/     -)-----   crh-jFlgvBokg3lg9hUCZPvPmw@public.gmane.org
OnLineBook -- http://ubiqx.org/cifs/    -)-----   crh-zuGDro9SezXYtjvyW6yDsg@public.gmane.org

  parent reply	other threads:[~2010-12-04 20:04 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04  2:28 cifs client timeouts and hard/soft mounts Jeff Layton
     [not found] ` <20101203212811.17594274-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-12-04  3:54   ` [cifs-protocol] " Christopher R. Hertel
2010-12-04  8:13     ` Volker Lendecke
     [not found]       ` <E1POnFL-00BKg9-JW-dqLtpHMqGvUyWpdLl23E4A@public.gmane.org>
2010-12-04 11:44         ` Jeff Layton
2010-12-04 12:25           ` Shirish Pargaonkar
2010-12-04 13:09             ` Jeff Layton
     [not found]               ` <20101204080942.42be63da-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-12-04 14:06                 ` Shirish Pargaonkar
     [not found]                   ` <AANLkTim45G=pLwznde8S_b=FGCnYyO29Tnokghs0qZ-y-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-04 14:22                     ` Jeff Layton
2010-12-04 14:46                       ` Shirish Pargaonkar
     [not found]                         ` <AANLkTimN0F5KyM7r1+k3Y3Ki+kwQukAr4uXzRJuMVZtX-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-04 16:55                           ` Jeff Layton
     [not found]             ` <AANLkTinsm=b5Pezzo4m6Jbmq96EcYas4Hsw0nhxfb4m6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-04 20:17               ` Christopher R. Hertel
2010-12-04 12:30           ` Shirish Pargaonkar
     [not found]           ` <20101204064452.46ac24c7-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-12-04 12:34             ` Shirish Pargaonkar
2010-12-04 20:04             ` Christopher R. Hertel [this message]
2010-12-04 19:46       ` Christopher R. Hertel
     [not found]     ` <4CF9BB65.2010307-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2010-12-04 11:28       ` Jeff Layton
2010-12-04 19:49         ` Christopher R. Hertel
2010-12-04  8:12 ` Volker Lendecke
2010-12-06  1:42   ` Steve French
     [not found]     ` <AANLkTi=MCgZb=we2OEtxJ4DZ==sVmRLd8aQKeMU7vvKt-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-06  2:06       ` Jeff Layton
2010-12-06  2:16         ` Steve French
     [not found]           ` <AANLkTik4Vh5hqWwVngjCC7v1ST1YxAP9LvQbcqKDhWHp-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-06  2:30             ` Jeff Layton
2010-12-06  4:34             ` Volker Lendecke
     [not found]               ` <E1PPSnw-00DDbs-Va-dqLtpHMqGvUyWpdLl23E4A@public.gmane.org>
2010-12-06 16:28                 ` Steve French
2010-12-06 16:49                   ` [cifs-protocol] " simo
     [not found]                     ` <1291654155.3167.6.camel-akOVU7JyYd8WIfilqQrPtNi2O/JbrIOy@public.gmane.org>
2010-12-06 17:06                       ` Christopher R. Hertel
2010-12-06 17:17                         ` Steve French
2010-12-06 17:01                   ` Christopher R. Hertel
     [not found]                     ` <4CFD16D8.4090207-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2010-12-06 17:42                       ` Jeff Layton
     [not found]                         ` <20101206124255.7ea8a8a9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-12-06 18:49                           ` Jeremy Allison
2010-12-06 18:54                           ` Christopher R. Hertel
     [not found]                             ` <4CFD3166.4000800-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2010-12-06 20:17                               ` Volker Lendecke
2010-12-06 20:38                                 ` Christopher R. Hertel
     [not found]                                   ` <4CFD49CD.5010002-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2010-12-06 20:42                                     ` Volker Lendecke
2010-12-06 20:44                                     ` Steve French
     [not found]                                       ` <AANLkTim1-m=d-A6yp4bWpYrEeqN_t49aHnAGPQEjrob_-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-06 20:52                                         ` Christopher R. Hertel
     [not found]                                           ` <4CFD4D15.60103-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
2010-12-06 22:45                                             ` [cifs-protocol] " Christopher R. Hertel
2010-12-07 20:34                                 ` Matt Ficken (Insight Global)
     [not found]                                   ` <673E6032983AF84185CE49D109B4F40A526665-Jfd81uAzPQsTaQvdokkCPVir+X/St4rqwBk/1ggFUS45P9zcU8sUGwC/G2K4zDHf@public.gmane.org>
2010-12-07 20:53                                     ` Christopher R. Hertel
2010-12-06  2:46   ` Andrew Bartlett
2010-12-06  4:35     ` Volker Lendecke

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=4CFA9EBD.8090708@samba.org \
    --to=crh-eunubhrolfbytjvyw6ydsg@public.gmane.org \
    --cc=Volker.Lendecke-PS7XAnAlDA+VvDNblw4Uiw@public.gmane.org \
    --cc=cifs-protocol-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
    --cc=jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=samba-technical-w/Ol4Ecudpl8XjKLYN78aQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox