# Code maintenance COMMS-1140 - Keep refreshing the document collaboration token after a web server outage

Project: Stream Communicator
Status: in development
URL: https://community.openproject.org/work_packages/COMMS-1140

## OPEN POINTS

_No work packages_

## Subtasks

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Assignee | Kabiru Mwenja |
| Accountable |  |
| Designer |  |
| Developers | Kabiru Mwenja |
| Requires doc change | No |
| Date |  |
| Priority | Medium |
| Target versions | 18.1.0 |
| Sprint |  |
| Backlog bucket |  |
| Module | Modules and project features / Documents |
| Accessibility | No |
| List |  |
| Labels |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| Work |  |
| Remaining work |  |

## Description

The periodic collaboration token refresh for documents gives up after three failed retries. When the web server is unavailable for longer while the collaboration connection stays up, the page keeps showing the offline hint until the next reconnect, and a loss of access is not detected in the meantime.

Keep retrying retryable failures with a growing delay capped at 30 seconds, and report only failures that cannot be retried.

Follow-up of https://community.openproject.org/wp/COMMS-649 (https://github.com/opf/openproject/pull/26970).
