Skip to content

Pingora 0.2.0

Latest
Compare
Choose a tag to compare
@eaufavor eaufavor released this 10 May 23:28
· 16 commits to main since this release

0.2.0 - 2024-05-10

馃殌 Features

  • Add support for downstream h2 trailers and add an upstream h2 response trailer filter
  • Add the ability to set TCP recv buf size
  • Add a convenience function to retrieve Session digest
  • Add body_bytes_read() method to Session
  • Add cache_not_modified_filter
  • Add SSLKEYLOG support for tls upstream
  • Add Service<HttpProxy<T>> constructor for providing name
  • Add purge_response callback
  • Make pop_closed pub, to simplify DIY drains

馃悰 Bug Fixes

  • Fixed gRPC trailer proxying
  • Fixed response_body_filter end_of_stream always being false
  • Fixed compile error in Rust <= 1.73
  • Fixed non linux build
  • Fixed the counting problem of used_weight data field in LruUnit<T>
  • Fixed cargo run --example server missing cert
  • Fixed error log string interpolation outside of proper context
  • Fixed tinylfu test flake

鈿欙笍 Changes and Miscellaneous Tasks

  • API change: Server::run_forever now takes ownership and ensures exit semantics
  • API change: cleanup() method of ServerApp trait is now async
  • Behavior change: Always return HttpTask::Body on body done instead of HttpTask::done
  • Behavior change: HTTP/1 reason phrase is now parsed and proxied
  • Updated h2 dependency for RUSTSEC-2024-0332
  • Updated zstd dependencies
  • Code optimization and refactor in a few crates
  • More examples and docs