Skip to content
Fossil Update of ”branch/xfer-login-card”
Login

Update of ”branch/xfer-login-card”

Overview

Artifact ID: 2b051272863ebd3024c0a93f3e1ebbec08de235f92f0d2feb0651c7b98fe8445
Page Name:branch/xfer-login-card
Date: 2025-07-24 13:15:31
Original User: stephan
Mimetype:text/x-markdown
Parent: 0a57f12f6b726ccdc37450851660eeb60d3528bd51d35735ee06142b9ab5334b (diff)
Content

The goals of this branch are:

It achieves those by enabling the sync layer's login card to be stored in the HTTP headers instead of in the sync body payload. Specifically, it writes the login card to a transient Cookie header (as distinct from a Set-Cookie header) which compatible remotes will recognize.

The sync workflow typically runs like this:

Many sync messages are quite small but posting of new files, or large changes, can cost considerable amounts of RAM (e.g. sqlite3.c requires something like 3MB to pack into the sync protocol), and those large packets now cost slightly less than half as much RAM to generate.

Design note: this change initially aimed to use a custom HTTP header, but that was incompatible with CGI-hosted fossils, which do not have access to the raw HTTP headers. Switching to a cookie was suggested in the forum and it turned out to be much simpler to implement that way.