[Bug 15136] Access to cifs gets stuck for a while (>20s) after disconnecting from network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--- Comment #2 from wangrong <wangrong@xxxxxxxxxxxxx> ---
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.



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux