All of lore.kernel.org
 help / color / mirror / Atom feed
From: samba-bugs@samba.org
To: cifs-qa@samba.org
Subject: [Bug 15136] Access to cifs gets stuck for a while (>20s) after disconnecting from network
Date: Fri, 05 Aug 2022 03:14:33 +0000	[thread overview]
Message-ID: <bug-15136-10630-23Xkv9Xp6H@https.bugzilla.samba.org/> (raw)
In-Reply-To: <bug-15136-10630@https.bugzilla.samba.org/>

https://bugzilla.samba.org/show_bug.cgi?id=15136

--- Comment #2 from wangrong <wangrong@uniontech.com> ---
Hi, Thanks for your reply and suggestion

I want to explain the design intent of wait_reconnect_timeout, it is used to
set the strategy for the application to wait for reconnection.
    wait_reconnect_timeout == 0, the application does not want to wait, and
returns as soon as it detects that the connection is unavailable.
    0 < wait_reconnect_timeout <= sk_rcvtimeo, the application wants to try to
wait, but is not guaranteed to complete a connection attempt.
    sk_rcvtimeo < wait_reconnect_timeout, the application wants to make sure a
connection attempt completes. This is the behavior of the current code, but
providing the wait_reconnect_timeout mount option gives the application more
choices.

Would it be better to provide both sk_rcvtimeo and wait_reconnect_timeout mount
options? it avoids hardcode.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

      parent reply	other threads:[~2022-08-05  3:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-04  3:01 [Bug 15136] New: Access to cifs gets stuck for a while (>20s) after disconnecting from network samba-bugs
2022-08-04 14:05 ` [Bug 15136] " samba-bugs
2022-08-05  3:14 ` samba-bugs [this message]

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=bug-15136-10630-23Xkv9Xp6H@https.bugzilla.samba.org/ \
    --to=samba-bugs@samba.org \
    --cc=cifs-qa@samba.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.