Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
Includes-commit: ac601366bd02f97c132e0c1e762e17a9c962b9a6
Includes-commit: f8f456ae72db0f78aa5823f5e4121322ecbb9816
Replicated-from: https://github.com/cloudflare/pingora/pull/442
Co-authored-by: Matthew Gumport <[email protected]>
|
|
inner cache meta is dropped
|
|
|
|
This changes the `CachePut` trait to take ownership of the response
header. We have a use-case for mutating the headers as we process the
response, and we would like to avoid copying them in order to do so.
|
|
|
|
This adds a hook during the flow where we move the write permit around
for subrequests to refresh stale assets to tag the parent span as being
part of a subrequest.
|
|
|
|
explicit option
|
|
Allow frontends to avoid jumping through hoops to create an Opt object,
for example, when configuration is handled by a config file.
Includes-commit: 8204820b217b6d60906b8361d2e077ed743b970b
Replicated-from: https://github.com/cloudflare/pingora/pull/390
|
|
The current quickstart document suggests to use pingora v0.1, but it
also suggests using the Opt::parse_args interface, which was introduced
in release v0.3.0. Update the quickstart document to suggest using v0.3
when setting up the cargo.toml file.
Addresses #432
Includes-commit: 9153a8a984d2e81304f8b7d6d338f1bfa126e5c3
Replicated-from: https://github.com/cloudflare/pingora/pull/433
|
|
|
|
Co-authored-by: Harald Gutmann <[email protected]>
|
|
We have the socket version at 0, which matches 0.3 as well. That
wont work because it doesn't have feature "all". We need 0.4+.
>=0.4, <1, should match ^0, but exclude 0.3.
Includes-commit: 98debd9f2793a77047caebf2e70684eb7ef4df14
Replicated-from: https://github.com/cloudflare/pingora/pull/413
|
|
Previously the response header filter was applied when serving from
cache (using `proxy_cache_hit`), but not the response body filter.
|
|
Co-authored-by: Matthew Gumport <[email protected]>
Includes-commit: 15e5c64ce46da5e061f2c84ce45cdddedf2f6058
Replicated-from: https://github.com/cloudflare/pingora/pull/415
|
|
|
|
|
|
Includes-commit: 5b5f2aeecf459f633b5459fffba4ad66da495a0a
Replicated-from: https://github.com/cloudflare/pingora/pull/429
|
|
For consistency when proxying h2 traffic to h1.
|
|
This adds the into_inner() function to the stream type, allowing
the HTTP/1.1 client and server to be turned back into a stream.
These functions are useful for implementing HTTP CONNECT or
HTTP Upgrade.
Includes-commit: 95aa77098cdfc7667074f2793cd326f496da66a1
Replicated-from: https://github.com/cloudflare/pingora/pull/412
|
|
This change fixes an issue that the actual current max send streams is
ignored.
This change requires h2 >= 0.4.6
|
|
Previously clients to the cache put interface writing excess response
body payloads (or bodies for responses that shouldn't have bodies) could
trigger a panic in the body parser. This change opts to just drain these
excess payloads without writing the excess body into cache.
|
|
|
|
Co-authored-by: Harald Gutmann <[email protected]>
|
|
Includes-commit: cd6f77726b2a5ca57f885af360de2ad0de788e87
Replicated-from: https://github.com/cloudflare/pingora/pull/402
Signed-off-by: spacewander <[email protected]>
|
|
When a downstream error occurs while a cache miss is being served, the
downstream error is ignored so the upstream can continue writing to the
cache. However, it is not safe to try reusing the server session in this
case.
|
|
This allows h2c and http1 to co-exist on the same port.
|
|
|
|
---
Merge branch 'cloudflare:main' into original-dst
Co-authored-by: ermakov-oleg <[email protected]>
Includes-commit: a3f2affceb1fcc41742c72088f993e05600abd2f
Includes-commit: a73893b243b68108033ecda26b0d36939ad36891
Replicated-from: https://github.com/cloudflare/pingora/pull/387
|
|
|
|
|
|
Co-authored-by: Grvzard <[email protected]>
|
|
Co-authored-by: Fredrik Enestad <[email protected]>
|
|
|
|
|
|
|
|
|
|
This allows us to optionally enable rx timestamp reading logic per
stream by calling `set_rx_timestamp`. When rx timestamp is disabled, the
standard battle-tested logic is used.
|
|
Documentation: https://docs.kernel.org/networking/timestamping.html
This modifies Stream type to be able to setup rx timestamp on its
socket, and use `recvmsg` to read the returned timestamp. The rx
timestamp of the last recvmsg is stored as `rx_ts`
In the context of tcp stream, if the returned byte range spans multiple
timestamps, the last one is returned.
|
|
Per ~~~-5535: it is not safe to call SSL_select_next_proto()
with invalid alpn_in.
Although our code is safe because it is only used via set_alpn_select_callback
which performs the check, an additional guard is added just in case these functions
are used in other context.
|
|
|
|
|
|
Updating existing Semgrep.yml file - Semgrep is a tool that will be used to scan Cloudflare's public repos for Supply chain, code and secrets. This work is part of Application & Product Security team's initiative to onboard Semgrep onto all of Cloudflare's public repos.
In case of any questions, please reach out to "Hrushikesh Deshpande" on cf internal chat.
|
|
server requests
|
|
---
fix cargo fmt check
Includes-commit: 19eeddcfbf0f4a7e4dc96cf4782143e96f54b371
Includes-commit: 41987023f175942be8f47ede18ada85b20993cca
Replicated-from: https://github.com/cloudflare/pingora/pull/380
|