Skip to content

Make the maximum automatic retry delay configurable in the GUI #12685

Open

Description

@sassan-ali-tat

Pre-submission Checks

  • I searched open and closed issues for similar proposals. Related issue "Force sync now" improvements #8022 covers manual retries, not GUI configuration of the automatic retry delay.
  • The required information for this feature proposal is included below.

Feature description

Please make the maximum delay between automatic retries of failed file transfers configurable in the ownCloud Desktop Client GUI.

Using ownCloud Desktop Client 5.3.2 on macOS, two downloads remained deferred for approximately another 20 hours after repeated connection failures reported as "Connection closed". After resetting the retry delay, both files downloaded successfully. The cause of the earlier connection failures is unknown.

A long retry delay can be useful to limit repeated unsuccessful transfers. However, users who need files promptly across multiple devices may find that files remain unsynchronized long after a temporary problem has ended. Users should be able to configure the maximum delay without an environment variable or a customized application launch.

Proposed solution

Provide a maximum retry delay setting in "Settings". Concrete GUI proposal for discussion:

  • Location: "Settings", "Advanced" section.
  • Field: "Maximum retry delay", a numeric input with the unit "minutes".
  • Range: 1 to 1440 minutes; default: 1440 minutes, preserving the existing maximum of 24 hours.
  • Help text: "Limits the waiting time between automatic retries of failed file transfers. Shorter delays cause more frequent retries."
  • Validation: Empty, non-integer, or out-of-range values cannot be saved. Error message: "Enter a whole number between 1 and 1440 minutes."
  • The setting applies client-wide, is saved persistently, and is restored after restarting the client.
  • Keep the existing progressive backoff; make only its upper limit configurable.
  • A reduced maximum should also apply to transfers already waiting: if the new delay has already elapsed since the last attempt, the next regular sync run should retry the file.
  • Leaving the setting unchanged preserves existing behavior. "Force sync now" remains available for immediate manual retries.
  • Define and document the interaction with OWNCLOUD_BLACKLIST_TIME_MAX; for example, an explicitly set environment variable could take precedence, with the GUI showing the effective value and the override.

Verification should cover the unchanged default, a shorter maximum delay, transfers already waiting, invalid input, persistence across restarts, and the documented precedence rule.

Alternative solutions you considered

  • "Force sync now" bypasses the delay manually and is sufficient as an immediate workaround. However, it requires the user to notice the error and intervene.
  • OWNCLOUD_BLACKLIST_TIME_MAX already provides technical configuration. A GUI setting would be easier to discover and would not require a customized application launch.

Additional context

This proposal concerns the Desktop Client in owncloud/client, not a change to OCIS.

The observation comes from version 5.3.2. The same mechanism is also present in the inspected default branch master at commit 55bd930a11636134ebfe32ee2721e417ac1e1707: calculation and environment variables. This source reference does not establish the behavior of an installed newer version.

Related: #8022 ("Force sync now" improvements).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions