In Windows, operations on a QNAP product over the network via CIFS (SMB) sometimes fail due to session timeout. How can I fix this problem?


最后修订日期: 2022-06-24

In Windows, session timeout for certain read/write operations over a network via CIFS (SMB) protocol is 60 seconds by default. This means that if the operation involves a large file, or if the NAS you are applying the operation on has been used for a long time, the operation may take longer than 60 seconds and be terminated due to timeout. 

For example, users may encounter failure when attempting the following operations:

  • Transferring a large file to a QNAP shared folder via CIFS (SMB)

  • Using Dell AppAssure to create a 7 TB repository on a QNAP NAS via CIFS (SMB)

To fix this problem, you can change the session timeout setting by using Windows Registry Editor.

Warning:
Serious problems might occur if you modify the registry incorrectly. Please follow the instructions carefully.

  1. Open Registry Editor.

    1. Press Windows + R.

    2. Enter “regedit” and then click OK.
      Registry Editor opens.

  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters.

  3. Add a new REG_DWORD value.

    1. Go to Edit > New > DWORD (32-bit) Value.
      A new value appears.

    2. Replace “New Value #1” with “SessTimeout” for the value name.

  4. Edit the SessTimeout value.

    1. Right-click the SessTimeout value and then select MODIFY….

    2. Select Decimal.

    3. Enter “3600” for the value data.
      Note:
      - The value data is represented in seconds (3600 seconds equals 1 hour). You can enter a different duration according to your needs.
      - You can change the value data to “60” later to revert to the default setting.  

    4. Click OK.

  5. Restart Windows.
    Important: You must restart Windows to ensure the new setting is applied.

这篇文章有帮助吗?

谢谢您,我们已经收到您的意见。

请告诉我们如何改进这篇文章:

如果您想提供其他意见,请于下方输入。

选择规格

      显示更多 隐藏更多
      open menu
      back to top