From 9bbd8fc0dba22a0bab88866a713f6087d4e1a98d Mon Sep 17 00:00:00 2001 From: Jun Kurihara Date: Thu, 24 Aug 2023 19:50:37 +0900 Subject: [PATCH] docs+deps: preparing v0.6.0 --- CHANGELOG.md | 4 +++- README.md | 6 +++--- rpxy-bin/Cargo.toml | 4 ++-- submodules/quinn | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0938efaa..f094cf81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # CHANGELOG -## 0.6.0 (unreleased) +## 0.7.0 (unreleased) + +## 0.6.0 ### Improvement diff --git a/README.md b/README.md index 951c35a9..55615112 100644 --- a/README.md +++ b/README.md @@ -281,9 +281,9 @@ tls = { https_redirection = true, tls_cert_path = './server.crt', tls_cert_key_p However, currently we have a limitation on HTTP/3 support for applications that enables client authentication. If an application is set with client authentication, HTTP/3 doesn't work for the application. -### Hybrid Caching Feature Using File and On-Memory +### Hybrid Caching Feature with Temporary File and On-Memory Cache -If `[experimental.cache]` is specified, you can leverage the local caching feature using temporary files and on-memory objects. Note that `max_cache_each_size` must be larger or equal to `max_cache_each_size_on_memory`. +If `[experimental.cache]` is specified in `config.toml`, you can leverage the local caching feature using temporary files and on-memory objects. An example configuration is as follows. ```toml # If this specified, file cache feature is enabled @@ -294,7 +294,7 @@ max_cache_each_size = 65535 # optional. default is 64k max_cache_each_size_on_memory = 4096 # optional. default is 4k if 0, it is always file cache. ``` -Note that once `rpxy` restarts or the config is updated, the cache is totally eliminated not only from the on-memory table but also from the file system. +A *storable* (in the context of an HTTP message) response is stored if its size is less than or equal to `max_cache_each_size` in bytes. If it is also less than or equal to `max_cache_each_size_on_memory`, it is stored as an on-memory object. Otherwise, it is stored as a temporary file. Note that `max_cache_each_size` must be larger or equal to `max_cache_each_size_on_memory`. Also note that once `rpxy` restarts or the config is updated, the cache is totally eliminated not only from the on-memory table but also from the file system. ## TIPS diff --git a/rpxy-bin/Cargo.toml b/rpxy-bin/Cargo.toml index af3e2f1c..99ee25f7 100644 --- a/rpxy-bin/Cargo.toml +++ b/rpxy-bin/Cargo.toml @@ -24,7 +24,7 @@ rpxy-lib = { path = "../rpxy-lib/", default-features = false, features = [ anyhow = "1.0.75" rustc-hash = "1.1.0" -serde = { version = "1.0.185", default-features = false, features = ["derive"] } +serde = { version = "1.0.186", default-features = false, features = ["derive"] } derive_builder = "0.12.0" tokio = { version = "1.32.0", default-features = false, features = [ "net", @@ -38,7 +38,7 @@ rustls-pemfile = "1.0.3" mimalloc = { version = "*", default-features = false } # config -clap = { version = "4.3.23", features = ["std", "cargo", "wrap_help"] } +clap = { version = "4.3.24", features = ["std", "cargo", "wrap_help"] } toml = { version = "0.7.6", default-features = false, features = ["parse"] } hot_reload = "0.1.4" diff --git a/submodules/quinn b/submodules/quinn index 5cca3063..7f260292 160000 --- a/submodules/quinn +++ b/submodules/quinn @@ -1 +1 @@ -Subproject commit 5cca3063f6f7747dcd9ec6e080ee48dcb5cfc4a7 +Subproject commit 7f260292848a93d615eb43e6e88114a97e64daf1