aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy
diff options
context:
space:
mode:
authorYuchen Wu <[email protected]>2024-03-01 11:51:14 -0800
committerYuchen Wu <[email protected]>2024-03-01 13:47:27 -0800
commit8160ad169878ea6b4884b977f2a96541083036c4 (patch)
tree3e0100f38369e96a7e27456230e1e841b021cd3f /pingora-proxy
parente8113822247b5f9bb4eab34cb10121b873e73fd1 (diff)
downloadpingora-8160ad169878ea6b4884b977f2a96541083036c4.tar.gz
pingora-8160ad169878ea6b4884b977f2a96541083036c4.zip
Fix typos and grammar issues
Co-authored-by: =?~~~?q?Ren=C3=A9=20Kla=C4=8Dan?= <[email protected]> Co-authored-by: 12932 <[email protected]> Co-authored-by: Alessandro <[email protected]> Co-authored-by: InImpasse <[email protected]> Co-authored-by: Paul James Cleary <[email protected]> Co-authored-by: Yang Hau <[email protected]> Co-authored-by: Morpheus <[email protected]> Co-authored-by: mobeicanyue <[email protected]> Co-authored-by: Twacqwq <[email protected]> Co-authored-by: Bobby <[email protected]> Co-authored-by: Dup4 <[email protected]> Co-authored-by: Josh Soref <[email protected]> Co-authored-by: Sheldon <[email protected]> Co-authored-by: houseme <[email protected]> Co-authored-by: ZhangIvan1 <[email protected]> Co-authored-by: GrahamQuan <[email protected]> Co-authored-by: =?~~~?q?Cristian=20Paul=20Pe=C3=B1aranda=20Rojas?= <[email protected]> Co-authored-by: Nathan Sit <[email protected]> Co-authored-by: David Lee <[email protected]> Co-authored-by: Mengliang Su <[email protected]> Co-authored-by: =?~~~?q?=EA=B9=80=EC=84=A0=EC=9A=B0?= <[email protected]> Co-authored-by: Allen Huang <[email protected]> Co-authored-by: Opacity <[email protected]> Co-authored-by: cris <[email protected]> Co-authored-by: Killian Ye <[email protected]> Co-authored-by: Jiwei-dev <[email protected]> Co-authored-by: Jinfeng Wang <[email protected]> Co-authored-by: Ikko Eltociear Ashimine <[email protected]>
Diffstat (limited to 'pingora-proxy')
-rw-r--r--pingora-proxy/src/lib.rs2
-rw-r--r--pingora-proxy/src/proxy_cache.rs8
-rw-r--r--pingora-proxy/tests/utils/conf/origin/conf/nginx.conf4
-rw-r--r--pingora-proxy/tests/utils/server_utils.rs2
4 files changed, 8 insertions, 8 deletions
diff --git a/pingora-proxy/src/lib.rs b/pingora-proxy/src/lib.rs
index d1aa399..9ecac87 100644
--- a/pingora-proxy/src/lib.rs
+++ b/pingora-proxy/src/lib.rs
@@ -594,7 +594,7 @@ where
};
if *shutdown.borrow() {
- // stop downstream downstream from reusing if this service is shutting down soon
+ // stop downstream from reusing if this service is shutting down soon
session.set_keepalive(None);
} else {
// default 60s
diff --git a/pingora-proxy/src/proxy_cache.rs b/pingora-proxy/src/proxy_cache.rs
index 0dba682..4546b58 100644
--- a/pingora-proxy/src/proxy_cache.rs
+++ b/pingora-proxy/src/proxy_cache.rs
@@ -220,7 +220,7 @@ impl<SV> HttpProxy<SV> {
}
Err(e) => {
// Allow cache miss to fill cache even if cache lookup errors
- // this is mostly to suppport backward incompatible metadata update
+ // this is mostly to support backward incompatible metadata update
// TODO: check error types
// session.cache.disable();
self.inner.cache_miss(session, ctx);
@@ -280,7 +280,7 @@ impl<SV> HttpProxy<SV> {
Err(e) => {
// TODO: more logging and error handling
session.as_mut().respond_error(500).await;
- // we have not write anything dirty to downstream, it is still reuseable
+ // we have not write anything dirty to downstream, it is still reusable
return (true, Some(e));
}
}
@@ -724,7 +724,7 @@ pub(crate) mod range_filter {
use http::header::*;
use std::ops::Range;
- // parse bytes into usize, ignores specifc error
+ // parse bytes into usize, ignores specific error
fn parse_number(input: &[u8]) -> Option<usize> {
str::from_utf8(input).ok()?.parse().ok()
}
@@ -734,7 +734,7 @@ pub(crate) mod range_filter {
// single byte range only for now
// https://datatracker.ietf.org/doc/html/rfc7233#section-2.1
- // https://datatracker.ietf.org/doc/html/rfc7233#appendix-C: case insensitive
+ // https://datatracker.ietf.org/doc/html/rfc7233#appendix-C: case-insensitive
static RE_SINGLE_RANGE: Lazy<Regex> =
Lazy::new(|| Regex::new(r"(?i)bytes=(?P<start>\d*)-(?P<end>\d*)").unwrap());
diff --git a/pingora-proxy/tests/utils/conf/origin/conf/nginx.conf b/pingora-proxy/tests/utils/conf/origin/conf/nginx.conf
index b0ab281..6e55d30 100644
--- a/pingora-proxy/tests/utils/conf/origin/conf/nginx.conf
+++ b/pingora-proxy/tests/utils/conf/origin/conf/nginx.conf
@@ -253,7 +253,7 @@ http {
return 200;
}
- # 1. A origin load balancer that rejects reused connetions.
+ # 1. A origin load balancer that rejects reused connections.
# this is to simulate the common problem when customers LB drops
# connection silently after being keepalived for awhile
# 2. A middlebox might drop the connection if the origin takes too long
@@ -283,7 +283,7 @@ http {
ngx.print(string.rep("A", 64))
ngx.print(string.rep("A", 64))
ngx.print(string.rep("A", 64))
- -- without ngx.req.read_body(), the body will return wihtout waiting for req body
+ -- without ngx.req.read_body(), the body will return without waiting for req body
}
}
diff --git a/pingora-proxy/tests/utils/server_utils.rs b/pingora-proxy/tests/utils/server_utils.rs
index e3aafe7..32f3275 100644
--- a/pingora-proxy/tests/utils/server_utils.rs
+++ b/pingora-proxy/tests/utils/server_utils.rs
@@ -412,7 +412,7 @@ impl Server {
}
}
-// FIXME: this still allows multiple servers to spawn across intergration tests
+// FIXME: this still allows multiple servers to spawn across integration tests
pub static TEST_SERVER: Lazy<Server> = Lazy::new(Server::start);
use super::mock_origin::MOCK_ORIGIN;