Skip to content

Commit

Permalink
fix the rustls proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored and FlorentinDUBOIS committed Jul 13, 2022
1 parent f78c9c6 commit 4806fa1
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions lib/src/https_rustls/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,22 +727,17 @@ impl Session {
let order = self.readable();
trace!("front readable\tinterpreting session order {:?}", order);

if front_interest.is_readable() {
let order = self.readable();
trace!("front readable\tinterpreting session order {:?}", order);

match order {
SessionResult::ConnectBackend => {
match self.connect_to_backend(session.clone()) {
// reuse connection or send a default answer, we can continue
Ok(BackendConnectAction::Reuse) | Err(_) => {}
// New or Replace: stop here, we must wait for an event
_ => return SessionResult::Continue,
}
match order {
SessionResult::ConnectBackend => {
match self.connect_to_backend(session.clone()) {
// reuse connection or send a default answer, we can continue
Ok(BackendConnectAction::Reuse) | Err(_) => {}
// New or Replace: stop here, we must wait for an event
_ => return SessionResult::Continue,
}
SessionResult::Continue => {}
order => return order,
}
SessionResult::Continue => {}
order => return order,
}
}

Expand Down

0 comments on commit 4806fa1

Please sign in to comment.