Skip to content

[stable-25.0.x] fix(call): detect dead signaling WebSocket connections via ping interval - #6558

Merged
AndyScherzinger merged 1 commit into
stable-25.0.xfrom
backport/6543/stable-25.0.x
Aug 24, 2026
Merged

[stable-25.0.x] fix(call): detect dead signaling WebSocket connections via ping interval#6558
AndyScherzinger merged 1 commit into
stable-25.0.xfrom
backport/6543/stable-25.0.x

Conversation

@backportbot

@backportbot backportbot Bot commented Aug 24, 2026

Copy link
Copy Markdown

Backport of PR #6543

The signaling WebSocket was created from the shared OkHttpClient without
a ping interval. In OkHttp 4.x this means no protocol-level pings are
sent and the WebSocket read timeout is infinite, so a half-open
connection (e.g. after switching from WiFi to cellular without a TCP
reset) is never detected: onFailure never fires, the existing reconnect
logic never runs, and the call goes silently mute/deaf while
participants still appear present.

Derive a dedicated client for the signaling WebSocket that pings every
10 seconds. OkHttp now fails the socket when a pong is not received in
time, which triggers the existing onFailure -> restartWebSocket path.
Regular HTTP calls keep using the unchanged shared client.

Assisted-by: opencode:ox-alpha
Signed-off-by: Tarek Loubani <tarek@tarek.org>
@backportbot
backportbot Bot requested review from mahibi and tareko August 24, 2026 14:44
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted labels Aug 24, 2026
@backportbot backportbot Bot added this to the 25.0.0 milestone Aug 24, 2026
@AndyScherzinger
AndyScherzinger merged commit 420c47a into stable-25.0.x Aug 24, 2026
12 of 15 checks passed
@AndyScherzinger
AndyScherzinger deleted the backport/6543/stable-25.0.x branch August 24, 2026 14:44
@github-actions

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/32740522309/artifacts/9525400111
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

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

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants