transparency-dev / trillian-tessera

Go library for building tile-based transparency logs (tlogs)
Apache License 2.0
11 stars 11 forks source link

Add support for h2c to GCP conformance and HTTP/2 to hammer #243

Closed AlCutter closed 2 months ago

AlCutter commented 2 months ago

This PR enables the use of HTTP2/Cleartext (h2c) in the GCP conformance server, and adds an flag to optionally force HTTP/2 usage in the hammer.

HTTP/2 supports much better multiplexing of requests over a socket connection compared to HTTP/1.1, which in turn results in better performance and fewer errors when sending a large number of concurrent requests (e.g. when running the hammer against a conformance server).

CloudRun detects and supports h2c if implemented by the server its hosting, otherwise it will downgrade incoming HTTP/2 requests to HTTP/1.