mORMot2 DailyDaily read of upstream commits

FastCGI proxying and ZIP GCM arrive; macOS ARM64 service calls recover

The proxy gains asynchronous FastCGI and virtual WSGI routes, while ZIP adds opt-in AES-256-GCM and cheaper authenticated extraction. Several same-day corrections are essential to those new paths. Delphi macOS ARM64 service stubs are repaired, and DuckDB gains file conversion helpers.

TL;DR

  • FastCGI proxying supports physical scripts and hpoFastCgiWsgi virtual routes.
  • AE-3 is opt-in; include the subsequent GCM Auth correction, not only its initial implementation.
  • Delphi macOS ARM64 interface service calls no longer use an empty stub.
  • DuckDB file helpers need their same-day COPY binding and row-count fix.

Upgrade advice

Take the complete historical 2.4.18133 batch. Do not isolate AE-3, Auth, DuckDB file helpers or the first FastCGI API from their same-day follow-ups. Review custom AsyncResponse overrides and test Delphi macOS ARM64 service results. The raw payload has no superseded_by links; later fixes are not ruled out.

Build2.4.18103 → 2.4.18133
Commits30
Lines+24323 -14020
Read4 min

24 of 24 entries · 30 commits upstream

# Entry Category Units
1 High GCM authentication-only processing handles the AVX path correctly TAesGcmEngine.Auth adds AVX GHASH buffering, flushes pending AAD before ciphertext and updates the final partial-block length. Add_AAD shares AvxAuth. Fixes mormot.crypt.core 921c3dd6+73-45

crypt: fixed TAesGcmEngine.Auth method

Impact

Delphi/FPC callers of the new authentication-only API must include this follow-up, particularly on AVX-capable x64 systems; Auth requires Reset first.

Worth a look

Public API

  • TAesGcmEngine.Authbehaviour-changed

Arnaud Bouchez · 11:52 UTC · view the commit on GitHub →

2 High Delphi macOS ARM64 service calls use working interface stubs mormot.core.interfaces enables the Apple ARM64 X8 result and static fake-VMT path for macOS and links delphi-macos-arm64.o. Fixes mormot.core.interfaces a8116fbd+7-2

core: interface-based services on Delphi macOS aarch64

Impact

Delphi macOS ARM64 interface-based service calls no longer silently return empty results from an empty stub. FPC paths are unchanged.

Dimitris Kounalakis · 06:52 UTC · view the commit on GitHub →

3 Medium Poll termination wakes Linux epoll waiters TPollAbstract owns Terminated; pollers reject work after termination. Linux epoll uses a private level-triggered eventfd and closes descriptors during destruction. Fixes mormot.net.sock+1 bbbb264b+85-44

net: cleaner TPollAbstract termination and shutdown

Impact

Async Delphi/FPC shutdown can release Linux waiters without exposing the wake event as a socket. Owners must still wait for active GetOne calls before freeing the poller.

Worth a look

Public API

  • TPollAbstract.Terminatedadded

Arnaud Bouchez · 20:09 UTC · view the commit on GitHub →

4 Medium DuckDB file helpers bind filenames in COPY order and return row counts DoCopy binds Dest before Source and reads the returned count row; ImportFile also reads its count result. File bindings use TFileName directly. Fixes mormot.db.sql.duckdb 4478f7b5+19-15

db: fixed some #792 DuckDB issues

Impact

The new Delphi/FPC DuckDB import/export/conversion helpers need this correction for proper paths and reported row counts.

Worth a look

Public API

  • TSqlDBDuckDBConnectionProperties.ImportFilebehaviour-changed
  • TSqlDBDuckDBConnectionProperties.ConvertFilebehaviour-changed
  • TSqlDBDuckDBConnectionProperties.ExportSqlbehaviour-changed

Arnaud Bouchez · 10:48 UTC · PR #792 · view the commit on GitHub →

5 Medium Linux eventfd wakeups write their counter LinuxEventFDWrite writes a QWord through FpWrite when fd is positive, replacing an empty implementation. Fixes mormot.core.os.posix d0e39745+4-2

core: minimal LinuxEventFDWrite() implementation on all compilers

Impact

Linux Delphi/FPC polling code can signal the new epoll termination eventfd; other OS paths are unchanged.

Arnaud Bouchez · 20:15 UTC · view the commit on GitHub →

6 Medium ZIP encryption adds an opt-in AES-256-GCM mode TZipCryptGcm and zeAes256Gcm add AE-3 handling. TZipWrite.Ae3Iterations defaults to 600000 and accepts 320000..5000000 in 10000-step increments. New features mormot.core.zip+1 b20fe059+13958-13097

crypt: new TZipCryptGcm Class Implementing AES-GCM-256 WinZip AE-3 Format

Impact

Delphi/FPC writers must explicitly choose the new mode; older readers may not understand it. Default zeAes256 remains unchanged.

Worth a look

Public API

  • TZipCryptGcmadded
  • zeAes256Gcmadded
  • TZipWrite.Ae3Iterationsadded
  • TZipCrypt.AesIterationsadded
  • TFileInfoExtraAes.iterationsadded

Arnaud Bouchez · 07:34 UTC · view the commit on GitHub →

7 Medium The HTTP proxy relays requests to FastCGI responders mormot.net.proxy adds FastCGI records, parsing, TFastCgiAsyncConnection(s), AddFastCgi and FastCgiTimeoutSec. AsyncResponse gains optional CustomHeaders. New features mormot.net.proxy+2 3c9a6f8f+1173-9

net: THttpProxyServer can relay requests to a FastCGI application - see #388

Impact

Delphi/FPC proxies can use fcgi:// TCP or Unix-socket backends with one connection per request. Custom AsyncResponse overrides must match the added parameter.

Worth a look

Public API

  • TFastCgiAsyncConnectionadded
  • TFastCgiAsyncConnectionsadded
  • TFastCgiHeaderadded
  • TFastCgiRecordTypeadded
  • TFastCgiResponseadded
  • THttpProxyServerSettings.AddFastCgiadded
  • THttpProxyUrlSettings.FastCgiTimeoutSecadded
  • THttpServerGeneric.AsyncResponsesignature-changed
  • THttpAsyncServer.AsyncResponsesignature-changed
  • FastCgiParseOutputadded

zen010101 · 14:51 UTC · PR #388 · view the commit on GitHub →

8 Medium DuckDB reads and converts files without Pascal row copies TSqlDBDuckDBConnectionProperties adds FileToDocVariant, ImportFile, ExportSql and ConvertFile for CSV, TSV, JSON, NDJSON, Parquet and XLSX via DuckDB SQL. New features mormot.db.sql.duckdb 233dac99+417-1

db: DuckDB file import/export/convert methods

Impact

Delphi/FPC import/export jobs can delegate file work to DuckDB. SQL options and table names remain SQL input; XLSX needs the excel extension and the same-day helper fix must be included.

Worth a look

Public API

  • TSqlDBDuckDBConnectionProperties.FileToDocVariantadded
  • TSqlDBDuckDBConnectionProperties.ImportFileadded
  • TSqlDBDuckDBConnectionProperties.ExportSqladded
  • TSqlDBDuckDBConnectionProperties.ConvertFileadded

tf · 15:20 UTC · view the commit on GitHub →

9 Medium FastCGI routes can target WSGI applications without script files hpoFastCgiWsgi maps the mount prefix to SCRIPT_NAME and decoded suffix to PATH_INFO, omitting physical script lookup; FastCgiAppendParams gains Wsgi. New features mormot.net.proxy 546cfc21+93-49

net: introducing hpoFastCgiWsgi mormot.net.proxy option

Impact

Delphi/FPC proxies can route to virtual WSGI endpoints; existing physical-script FastCGI mapping remains the default.

Worth a look

Public API

  • hpoFastCgiWsgiadded
  • FastCgiAppendParamssignature-changed

Arnaud Bouchez · 18:16 UTC · view the commit on GitHub →

10 Medium AES-GCM exposes ciphertext authentication without decryption TAesGcmEngine.Auth updates ciphertext GHASH without the AES-CTR phase, rejecting invalid input or an already finalized context. New features mormot.crypt.core cfbe3756+14-2

crypt: new TAesGcmEngine.Auth method

Impact

This new Delphi/FPC API supports authentication-only passes, but its initial implementation needs the same-day AVX correction.

Worth a look

Public API

  • TAesGcmEngine.Authadded

Arnaud Bouchez · 08:05 UTC · view the commit on GitHub →

11 Medium FastCGI builders switch to temporary buffers and string responses FastCgiAppend helpers use TSynTempAdder; FastCgiParseOutput takes var Output and removes its headers. TFastCgiResponse.Output/Error become strings and RecType becomes an enum. Performance mormot.net.proxy 471a5e8b+392-295

net: FastCGI client refactoring from the #785 review

Impact

The new same-day FastCGI API changes signatures before settling; direct low-level callers must adopt final builder and response types.

Worth a look

Public API

  • FastCgiAppendParamsignature-changed
  • FastCgiAppendStreamsignature-changed
  • FastCgiAppendRequestsignature-changed
  • FastCgiAppendParamssignature-changed
  • FastCgiParseOutputsignature-changed
  • TFastCgiResponse.Outputsignature-changed
  • TFastCgiResponse.Errorsignature-changed
  • TFastCgiHeader.RecTypesignature-changed

zen010101 · 13:09 UTC · PR #785 · view the commit on GitHub →

12 Medium ZIP file extraction authenticates through a private partial file TZipRead writes filename extraction to Dest + '.partial', validates once, then publishes it. Caller-owned streams retain authenticate-first behavior; filename decoding uses CP_437. Performance mormot.core.zip 36a54e96+105-60

core: enhanced .zip cryptography

Impact

File extraction avoids an extra ciphertext pass and preserves the old destination on authentication failure. Publication uses delete then rename, not an atomic replacement.

Worth a look

Public API

  • TZipRead.UnZipbehaviour-changed

Arnaud Bouchez · 09:30 UTC · view the commit on GitHub →

13 Medium AE-3 second-pass decryption reuses verified key state TZipCrypt.DecryptReset is added. TZipCryptGcm retains the verified header and nonce for one reset; AuthOnly uses TAesGcmEngine.Auth instead of AES-CTR. Performance mormot.core.zip+1 266fdcdc+61-33

crypt: optimized TZipCryptGcm

Impact

Delphi/FPC AE-3 stream extraction avoids repeating PBKDF2 and unnecessary decryption; include the later Auth fix in this edition.

Worth a look

Public API

  • TZipCrypt.DecryptResetadded

Arnaud Bouchez · 08:07 UTC · view the commit on GitHub →

14 Medium Constructors gain distinct C++Builder signatures TFileStreamEx.CreateWrite adds optional aShareMode defaulting to fmShareRead; CreateFromContentType adds a trailing argument later replaced by aContext. Compiler & platform mormot.core.os+1 b73abe19+15-6

core, net: make duplicate constructor signatures reachable from C++Builder

Impact

Existing calls keep their defaults; package/C++Builder users should take the subsequent signature corrections rather than this intermediate state alone.

Worth a look

Public API

  • TFileStreamEx.CreateWritesignature-changed
  • THttpMultiPartDecoder.CreateFromContentTypesignature-changed

vennexTSE · 11:41 UTC · view the commit on GitHub →

15 Low Pointer-based ANSI conversion writes directly to RTL strings AnsiToStringVar converts pointer/length input with an explicit code page; empty input clears the destination and AnsiToString delegates to it. New features mormot.core.unicode f62bfc90+39-15

core: new AnsiToStringVar() function

Impact

Delphi/FPC code can convert existing ANSI buffers without first constructing a source RawByteString.

Public API

  • AnsiToStringVaradded

Arnaud Bouchez · 09:29 UTC · view the commit on GitHub →

16 Low IBM code page 437 uses an internal conversion table CP_437 is defined as 437 and TSynAnsiFixedWidth gains its lookup table; the commit subject's 347 is not the implemented code page. New features mormot.core.base+1 d592b726+32-8

core: introducing internal lookup table for code page 347

Impact

Legacy ZIP filename conversion can avoid loading ICU/iconv on POSIX Delphi/FPC targets.

Public API

  • CP_437added

Arnaud Bouchez · 09:28 UTC · view the commit on GitHub →

17 Low FastCGI response bodies reuse unique string storage FastCgiParseOutput moves the body over headers and adjusts length when Output has one reference; shared strings retain the safe Delete path. Performance mormot.net.proxy d563d912+15-3

net: make FastCgiParseOutput() allocation free

Impact

The common Delphi/FPC FastCGI response path avoids an extra allocation without changing its public signature.

Arnaud Bouchez · 18:17 UTC · view the commit on GitHub →

18 Low Multipart construction replaces its dummy argument with context THttpMultiPartDecoder.CreateFromContentType replaces trailing aDummy: integer with optional aContext: PUtf8Char and includes context in its boundary error. Compiler & platform mormot.net.client 05b6e4d6+7-9

net: minor refactoring after #796

Impact

Ordinary calls remain compatible; code passing the newly introduced fourth argument must use a pointer context rather than an integer.

Worth a look

Public API

  • THttpMultiPartDecoder.CreateFromContentTypesignature-changed

Arnaud Bouchez · 18:14 UTC · PR #796 · view the commit on GitHub →

19 Low ZIP encryption tests split into independent jobs ZIP encryption cases use separate sender indices and filenames for parallel execution; FastCGI assertions use the new string fields. Tests 1bc774ad+106-86

test: refactoring and parrallelizing

Impact

Only the regression suite changes; application encryption and networking behavior are unaffected.

Arnaud Bouchez · 18:18 UTC · view the commit on GitHub →

20 Low FastCGI regression tests cover virtual WSGI routes DoHttpFastCgi checks WSGI SCRIPT_NAME/PATH_INFO, POST bodies, decoded paths, NUL rejection and unchanged PHP mapping. Tests 1633875b+43-2

tests: cover WSGI flavor of FastCgi proxy

Impact

No production backend changes; the new WSGI option gains regression coverage.

Arnaud Bouchez · 18:58 UTC · view the commit on GitHub →

21 Low AE-3 tests validate good data before corrupting the tag CheckAe3PartialFile moves the valid two-pass stream assertion before tag tampering, then checks preservation of the destination on failure. Tests a9071861+14-15

test: fixed CheckAe3PartialFile

Impact

No framework behavior changes; this corrects the order of the regression test.

Arnaud Bouchez · 11:57 UTC · view the commit on GitHub →

22 Low Regression fixtures avoid forcing an online Excel installation The AE-3 test gains stream checks, and the DuckDB test comments out INSTALL excel so XLSX coverage depends on installed extension availability. Tests 8a6b5461+16-4

test: fixed latest regression code

Impact

Only tests change; deployed Delphi/FPC applications retain their own extension installation policy.

Arnaud Bouchez · 11:53 UTC · view the commit on GitHub →

23 Low An analytics sample compares database engines on shared datasets dbbench adds TPC-H and railway queries, preparation scripts and result checking for DuckDB, SQLite3, PostgreSQL and Quack paths. Docs 4ea9a25d+1943-0

ex: new dbbench comparing DuckDB with SQLite3 and PostgreSQL on analytics

Impact

No production API changes. Published sample timings are not evidence of a universal speedup for existing applications.

tf · 15:11 UTC · view the commit on GitHub →

24 Low A sample connects 32-bit clients to a local DuckDB Quack process duckdbproxy starts the 64-bit DuckDB CLI with TExternalProcess and uses TSqlDBQuackConnectionProperties with a token sent through stdin. Docs bea8c9fb+244-0

ex: duckdbproxy - DuckDB from 32-bit clients via a local Quack server

Impact

This is example code, not a new framework proxy layer or a claim that the native DuckDB library became 32-bit.

tf · 15:23 UTC · view the commit on GitHub →

Upstream activity commits per day · last 60 days
Commits1007
Active days49/60
Busiest2026-09-30
Peak60
2026-09-30: 60 commits2026-10-01: 26 commits2026-10-02: 30 commits2026-10-03: 32 commits2026-10-04: 15 commits2026-10-05: 1 commit2026-10-06: 26 commits2026-10-07: 37 commits2026-10-08: 27 commits2026-10-09: 35 commits2026-10-10: 12 commits2026-10-11: 2 commits2026-10-12: 40 commits2026-10-13: 31 commits2026-10-14: 23 commits2026-10-15: 16 commits2026-10-16: 27 commits2026-10-17: 0 commits2026-10-18: 0 commits2026-10-19: 0 commits2026-10-20: 0 commits2026-10-21: 0 commits2026-10-22: 3 commits2026-10-23: 6 commits2026-10-24: 29 commits2026-10-25: 7 commits2026-10-26: 25 commits2026-10-27: 4 commits2026-10-28: 8 commits2026-10-29: 17 commits2026-10-30: 20 commits2026-10-31: 0 commits2026-11-01: 0 commits2026-11-02: 16 commits2026-11-03: 32 commits2026-11-04: 15 commits2026-11-05: 32 commits2026-11-06: 26 commits2026-11-07: 19 commits2026-11-08: 2 commits2026-11-09: 29 commits2026-11-10: 17 commits2026-11-11: 8 commits2026-11-12: 38 commits2026-11-13: 39 commits2026-11-14: 9 commits2026-11-15: 6 commits2026-11-16: 21 commits2026-11-17: 30 commits2026-11-18: 37 commits2026-11-19: 28 commits2026-11-20: 31 commits2026-11-21: 0 commits2026-11-22: 0 commits2026-11-23: 1 commit2026-11-24: 6 commits2026-11-25: 3 commits2026-11-26: 3 commits2026-11-27: 0 commits2026-11-28: 0 commits
2026-09-302026-11-28