Page MenuHomePhabricator

If the Conduit server asserts it has the "gzip" capability, compress requests
ClosedPublic

Authored by epriestley on Apr 14 2020, 11:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 16 2026, 2:42 AM
Unknown Object (File)
Mar 15 2026, 8:55 PM
Unknown Object (File)
Feb 27 2026, 11:12 PM
Unknown Object (File)
Feb 7 2026, 1:57 PM
Unknown Object (File)
Feb 3 2026, 11:03 AM
Unknown Object (File)
Feb 3 2026, 11:03 AM
Unknown Object (File)
Jan 4 2026, 9:02 PM
Unknown Object (File)
Nov 29 2025, 4:40 AM
Subscribers
None

Details

Summary

Ref T13507. For various messy reasons we can't blindly assume the server supports "gzip" -- but if the server tells us it does, we're on firmer ground.

If the server returns an "X-Conduit-Capabilities: gzip" header and we have compression support locally, compress subsequent requests.

This restores D21073, which was reverted by D21076.

Test Plan

With a gzip-asserting server, added debugging code and ran various "arc" commands. Saw the 2nd..Nth calls hit compression code.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable