aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-proxy/src/proxy_h1.rs
diff options
context:
space:
mode:
authorViacheslav Biriukov <[email protected]>2024-12-10 18:07:49 +0000
committerYuchen Wu <[email protected]>2024-12-20 13:39:24 -0800
commit2a94183feba3bee207c812fc543481ff98635db2 (patch)
tree839f56e578fc3a8dc963b7ee186bbe0ee4cc50de /pingora-proxy/src/proxy_h1.rs
parentbb111aaa92b3753e650957df3a68f56b0cffc65d (diff)
downloadpingora-2a94183feba3bee207c812fc543481ff98635db2.tar.gz
pingora-2a94183feba3bee207c812fc543481ff98635db2.zip
add h2 server session tests
- test content-length=0 header - test HEADERS frames without EOS follows and an empty DATA frame with EOS
Diffstat (limited to 'pingora-proxy/src/proxy_h1.rs')
-rw-r--r--pingora-proxy/src/proxy_h1.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pingora-proxy/src/proxy_h1.rs b/pingora-proxy/src/proxy_h1.rs
index e13d4c1..d323562 100644
--- a/pingora-proxy/src/proxy_h1.rs
+++ b/pingora-proxy/src/proxy_h1.rs
@@ -311,9 +311,9 @@ impl<SV> HttpProxy<SV> {
},
_ = tx.reserve(), if downstream_state.is_reading() && send_permit.is_err() => {
- // If tx is closed, downstream already finish its job.
+ // If tx is closed, the upstream has already finished its job.
downstream_state.maybe_finished(tx.is_closed());
- debug!("waiting for permit {send_permit:?}, downstream closed {}", tx.is_closed());
+ debug!("waiting for permit {send_permit:?}, upstream closed {}", tx.is_closed());
/* No permit, wait on more capacity to avoid starving.
* Otherwise this select only blocks on rx, which might send no data
* before the entire body is uploaded.