Skip to content

fix(realtime): upgrade websocket to 2.0.2 - #13578

Merged
loks0n merged 1 commit into
mainfrom
codex/bump-websocket-2.0.2
Sep 9, 2026
Merged

loks0n merged 1 commit into
mainfrom
codex/bump-websocket-2.0.2

Conversation

@loks0n

@loks0n loks0n commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Upgrade utopia-php/websocket from 2.0.0 to 2.0.2 in the manifest and lockfile. Only this dependency changes.

The Swoole adapter now defaults to a five-second timeout for each full-buffer send wait and resets connections after failed pushes. This releases stalled send coroutines and retained payloads, including the closed-connection leak reported in swoole/swoole-src#6196. The existing adapter construction picks up the default automatically. Clients whose connection is reset must reconnect and refresh state for missed events.

Test Plan

  • composer validate --no-check-publish passes with version-pin warnings.
  • Targeted Composer update changes only WebSocket; Composer reports no security advisories.
  • composer install --dry-run --no-scripts --no-interaction --ignore-platform-req=ext-scrypt passes. The local host lacks scrypt; no platform requirements were removed from the project.
  • git diff --check passes.
  • The released library passed its unit and E2E suites, including stalled sends, abrupt disconnects, payload recovery and healthy replacement connections: fix(websocket): time out stalled sends and reset failed connections utopia-php/monorepo#240.
  • Application realtime E2E coverage runs in CI; the full application stack was not run locally for this dependency-only change.

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines?
  • No API metadata or generated specs change.

@greptile-apps

greptile-apps Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge with no concrete correctness, security, or repository-rule violations identified.

Summary

  • Updates the exact dependency pin and corresponding lockfile reference.
  • Keeps the package's PHP runtime requirement unchanged.
  • Changes no application code, tests, or unrelated resolved packages.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → codex/bump-websocket-2.0.2 (after).

Metric Before After Change
🚀 Requests/sec 257.34 259.84 ⚪ +1%
⏱️ Latency P50 68.87 ms 66.81 ms ⚪ -3%
⏱️ Latency P95 155.86 ms 158.53 ms ⚪ +1.7%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 66.81 158.53 15,960 259.84 +2.68
Account 131.1 241 840 14.36 +5.19
TablesDB 64.15 117.08 8,680 144.6 +0.44
Storage 62.67 136.85 4,200 71.74 -0.37
Functions 102.91 188.83 2,240 38.89 +3.87

Top API waits (after)

API request Max wait (ms)
functions.variables.update 381.22
account.prefs.update 350.07
storage.files.delete 325.74
tablesdb.rows.create 322.1
functions.variables.create 321.94

@loks0n
loks0n merged commit a8054f2 into main Sep 9, 2026
55 of 56 checks passed
@ChiragAgg5k ChiragAgg5k mentioned this pull request Sep 10, 2026
2 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant