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
F19469329: D21119.id50298.diff
Sun, Jan 4, 9:02 PM
F19059156: D21119.diff
Nov 29 2025, 4:40 AM
F18904625: D21119.id.diff
Nov 8 2025, 10:14 AM
F18885566: D21119.diff
Nov 7 2025, 3:27 AM
F18849226: D21119.id50296.diff
Oct 30 2025, 8:34 AM
F18827624: D21119.id50298.diff
Oct 24 2025, 11:09 AM
F18769989: D21119.id.diff
Oct 8 2025, 10:13 AM
F18763968: D21119.diff
Oct 7 2025, 3:23 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