Skip to content

fix: update base image to 2.0.4 for libcurl shutdown cleanup - #13496

Merged
loks0n merged 1 commit into
mainfrom
codex/update-base-curl-822
Sep 5, 2026
Merged

loks0n merged 1 commit into
mainfrom
codex/update-base-curl-822

Conversation

@loks0n

@loks0n loks0n commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

Update the production and XDebug base images from 2.0.0 to 2.0.4. The new base requires libcurl 8.22.0, which fixes retained TLS shutdown connections in the socket-action API used by Swoole's curl hook. This brings the upstream socket/memory leak fix into Appwrite without changing its HTTP transport or connection pooling.

Also includes the intervening base-image PHP and extension dependency updates. Production and development use matching base versions.

Base release: https://github.com/appwrite/docker-base/releases/tag/2.0.4 (merged appwrite/docker-base#102).

Validation: base-image CI passed on AMD64 and ARM64. The tested base delivered 2,400/2,400 synthetic Sentry events without exporter errors or accumulating descriptors, and 400 keep-alive requests used one TCP connection. Appwrite production and DEBUG=true development images both build against the released 2.0.4 tags. Production loads PHP 8.5.10, Swoole 6.2.2, and libcurl 8.22.0 with XDebug absent; the debug image loads XDebug successfully. The production image's unchanged Span bootstrap delivered 400/400 synthetic Sentry events with zero exporter errors, 9 final FDs, and zero CLOSE_WAIT sockets. Appwrite CI is running. Staging and production deployment have not been performed.

@greptile-apps

greptile-apps Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates Appwrite’s production and XDebug base images from 2.0.0 to 2.0.4 to incorporate the upstream libcurl shutdown cleanup.

  • Keeps production and development base-image versions aligned.
  • Updates the explanatory XDebug comment to reference the new version.

Confidence Score: 5/5

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

The narrowly scoped tag bump preserves matching production and XDebug versions and remains consistent with the Dockerfile’s existing PHP and extension contracts.

Important Files Changed

Filename Overview
Dockerfile Updates both base-image variants consistently to 2.0.4 without changing build-stage behavior or extension mounting.

Reviews (1): Last reviewed commit: "fix: update base image to 2.0.4 for libc..." | Re-trigger Greptile

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → codex/update-base-curl-822 (after).

Metric Before After Change
🚀 Requests/sec 190.52 181.95 ⚪ -4.5%
⏱️ Latency P50 92.69 ms 96.66 ms ⚪ +4.3%
⏱️ Latency P95 208.12 ms 219.03 ms 🔴 +5.2%
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 96.66 219.03 11,457 181.95 +10.91
Account 171.05 307.55 603 9.96 -7.28
TablesDB 95.34 179.99 6,231 100.07 +6.14
Storage 86.16 209.01 3,015 51.19 +33.48
Functions 126.98 256.5 1,608 28.19 -14.71

Top API waits (after)

API request Max wait (ms)
account.name.update 559.7
functions.variables.update 517.49
functions.delete 456.66
account.prefs.update 427.13
storage.buckets.create 419.28

@loks0n
loks0n merged commit 82abf9c into main Sep 5, 2026
44 of 45 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