Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol message compression support #3287

Closed
wants to merge 1 commit into from

Commits on Mar 26, 2020

  1. Add protocol message compression support:

    * Peers negotiate compression via HTTP Header "X-Offer-Compression: lz4"
    * Messages greater than 70 bytes and protocol type messages MANIFESTS,
      ENDPOINTS, TRANSACTION, GET_LEDGER, LEDGER_DATA, GET_OBJECT,
      and VALIDATORLIST are compressed
    * If the compressed message is larger than the uncompressed message
      then the uncompressed message is sent
    * Compression flag and the compression algorithm type are included
      in the message header
    * Only LZ4 block compression is currently supported
    gregtatcam committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    4b7991b View commit details
    Browse the repository at this point in the history