greenbone / gsad

Greenbone Security Assistant HTTP Server - The server talking to the Greenbone Vulnerability Management daemon (gvmd).
GNU Affero General Public License v3.0
11 stars 14 forks source link

Add: compress responses in exec_gmp_get with Brotli #158

Closed mattmundell closed 10 months ago

mattmundell commented 11 months ago

What

In exec_gmp_get, compress responses with Brotli.

This feature is only used if libbrotli is found at build time.

Why

Speeds up data transfer by reducing size of transfer.

Results in smaller sizes than deflate. For example one cmd=edit_config_family request of 1.52MB:

br  73.04kB
de 107.38kB

References

Recent PR for deflate: greenbone/gsad/pull/143 Brotli encoding C man page: https://man.archlinux.org/man/core/brotli/encode.h.3.en

github-actions[bot] commented 11 months ago

Conventional Commits Report

Type Number
Added 1

:rocket: Conventional commits found.