Skip to content

Commit

Permalink
chore: no diferentiation between empty body or filled body
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelgadoalfonso committed Sep 16, 2024
1 parent a48220e commit 705f7cf
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions pingora-proxy/src/proxy_h1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,10 @@ impl<SV> HttpProxy<SV> {
session.as_mut().enable_retry_buffering();

// start bi-directional streaming
let ret = if !session.is_body_empty() {
tokio::try_join!(
self.proxy_handle_downstream(session, tx_downstream, rx_upstream, ctx),
self.proxy_handle_upstream(client_session, tx_upstream, rx_downstream),
)
} else {
tokio::try_join!(
self.proxy_handle_downstream(session, tx_downstream, rx_upstream, ctx),
self.proxy_handle_upstream(client_session, tx_upstream, rx_downstream),
)
};
let ret = tokio::try_join!(
self.proxy_handle_downstream(session, tx_downstream, rx_upstream, ctx),
self.proxy_handle_upstream(client_session, tx_upstream, rx_downstream),
);

match ret {
Ok((_first, _second)) => (true, true, None),
Expand Down

0 comments on commit 705f7cf

Please sign in to comment.