Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: "Christopher R. Hertel" <crh-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>
To: Shirish Pargaonkar
	<shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>,
	Volker.Lendecke-3ekOc4rQMZmzQB+pC5nmwQ@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:17:41 -0600	[thread overview]
Message-ID: <4CFAA1E5.5010306@samba.org> (raw)
In-Reply-To: <AANLkTinsm=b5Pezzo4m6Jbmq96EcYas4Hsw0nhxfb4m6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Shirish Pargaonkar wrote:
:
> Is SMB Echo command the only way to determine whether to reconnect or not?

The SMB Echo can only be sent from the client to the server.  The server has
no mechanism, within the SMB protocol, to "ping" the client.

The Echo is used by the client as a way to test whether it is the connection
that has failed or if the server is simply taking a very long time to
respond to a particular request.

> The assumption here is SMB server is unresponsive.
> There could be other circumstances on the server box (or even client
> box) that are slowing down the SMB server responses such as slow
> network, slow network stack, memory pressure etc.

Right.  So how do you know whether it is the transport connection or the SMB
server that is having trouble?  In theory, the SMB server should answer the
Echo right away, even if it is having other problems.

> So server could be fine all along and yet client would ask for reconnection!

If the network is slow, that's a transport problem.  It's also why the 45
second timeout value is adaptable.  See the earlier message in which I
pointed to the sections in [MS-CIFS] that explain the 45 second timeout and
point at the related KB articles.

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:17 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 [this message]
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
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=4CFAA1E5.5010306@samba.org \
    --to=crh-eunubhrolfbytjvyw6ydsg@public.gmane.org \
    --cc=Volker.Lendecke-3ekOc4rQMZmzQB+pC5nmwQ@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 \
    --cc=shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@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