Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Eloi DEMOLIS <[email protected]>
  • Loading branch information
Wonshtrum committed Nov 29, 2023
1 parent 7edc897 commit 4436540
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions lib/src/https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,8 @@ impl ProxySession for HttpsSession {
match self.state.marker() {
StateMarker::Expect => incr!("https.upgrade.expect.failed"),
StateMarker::Handshake => incr!("https.upgrade.handshake.failed"),
StateMarker::Http => incr!("https.upgrade.http.failed"),
StateMarker::WebSocket => incr!("https.upgrade.wss.failed"),
StateMarker::Http2 => incr!("https.upgrade.http2.failed"),
StateMarker::Mux => incr!("https.upgrade.mux.failed"),
StateMarker::Mux => incr!("https.upgrade.http.failed"),
}
return;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/src/protocol/mux/h1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl<Front: SocketHandler> ConnectionH1<Front> {
return MuxResult::Continue;
}

let was_initial = kawa.is_initial();
let was_main_phase = kawa.is_main_phase();
kawa::h1::parse(kawa, parts.context);
debug_kawa(kawa);
if kawa.is_error() {
Expand Down Expand Up @@ -80,7 +80,7 @@ impl<Front: SocketHandler> ConnectionH1<Front> {
}
match self.position {
Position::Server => {
if was_initial {
if !was_main_phase {
self.requests += 1;
println_!("REQUESTS: {}", self.requests);
stream.state = StreamState::Link
Expand Down
2 changes: 1 addition & 1 deletion lib/src/protocol/mux/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{
cell::RefCell,
collections::HashMap,
io::{ErrorKind, Write},
io::ErrorKind,
net::{Shutdown, SocketAddr},
rc::{Rc, Weak},
};
Expand Down
2 changes: 1 addition & 1 deletion lib/src/router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ mod tests {
),
Ok(Route::Cluster {
id: "examplewildcard".to_string(),
h2: true
h2: false
})
);
assert_eq!(
Expand Down

0 comments on commit 4436540

Please sign in to comment.