Overview
| Artifact ID: | 7174b71225cba8286de2d2f1388f659af75773bed0461221159baf2e537ec8c7 |
|---|---|
| Page Name: | branch/xfer-login-card |
| Date: | 2025-07-22 16:04:11 |
| Original User: | stephan |
| Mimetype: | text/x-markdown |
| Next | f5cb243ec921dc03e85364020bfbc0a17b7cba380d13145d2becbb1d541018bf |
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.)