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
F18769989: D21119.id.diff
Wed, Oct 8, 10:13 AM
F18763968: D21119.diff
Tue, Oct 7, 3:23 AM
F18493697: D21119.diff
Sep 4 2025, 3:19 AM
F18438271: D21119.id50296.diff
Aug 31 2025, 12:48 PM
F18378978: D21119.diff
Aug 28 2025, 3:08 PM
F18100996: D21119.id.diff
Aug 9 2025, 12:14 PM
F18083905: D21119.id.diff
Aug 5 2025, 12:19 PM
F18053269: D21119.diff
Aug 4 2025, 4:21 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