Overview
| Artifact ID: | f5cb243ec921dc03e85364020bfbc0a17b7cba380d13145d2becbb1d541018bf |
|---|---|
| Page Name: | branch/xfer-login-card |
| Date: | 2025-07-23 19:33:51 |
| Original User: | stephan |
| Mimetype: | text/x-markdown |
| Parent: | 7174b71225cba8286de2d2f1388f659af75773bed0461221159baf2e537ec8c7 (diff) |
| Next | 0a57f12f6b726ccdc37450851660eeb60d3528bd51d35735ee06142b9ab5334b |
Content
The goals of this branch are:
Reduce memory cost of outbound payloads which have a login card by eliminating one of the copies of the payload.
Keep downstream clients (read as "libfossil") from having to perform the same memory-hungry juggling to generate their sync payloads.
It achieves those by enabling the sync layer's login card to be stored as the X-Fossil-Xfer-Login header instead of in the sync body payload. The /xfer layer enables this based on client/server version info, and this branch must be able to interact with any older versions for both push and pull operations. (Any deviation from that is a bug.)
Open issues:
- CGI-hosted fossils do not get the HTTP headers, so cannot use this approach. We can possibly worked around this by passing the card as a URL parameter during sync and handling it early on in fossil like we do
?skin=....