Skip to content

Commit 4436540

Browse files
committed
tmp
Signed-off-by: Eloi DEMOLIS <[email protected]>
1 parent 7edc897 commit 4436540

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

lib/src/https.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,8 @@ impl ProxySession for HttpsSession {
466466
match self.state.marker() {
467467
StateMarker::Expect => incr!("https.upgrade.expect.failed"),
468468
StateMarker::Handshake => incr!("https.upgrade.handshake.failed"),
469-
StateMarker::Http => incr!("https.upgrade.http.failed"),
470469
StateMarker::WebSocket => incr!("https.upgrade.wss.failed"),
471-
StateMarker::Http2 => incr!("https.upgrade.http2.failed"),
472-
StateMarker::Mux => incr!("https.upgrade.mux.failed"),
470+
StateMarker::Mux => incr!("https.upgrade.http.failed"),
473471
}
474472
return;
475473
}

lib/src/protocol/mux/h1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<Front: SocketHandler> ConnectionH1<Front> {
4949
return MuxResult::Continue;
5050
}
5151

52-
let was_initial = kawa.is_initial();
52+
let was_main_phase = kawa.is_main_phase();
5353
kawa::h1::parse(kawa, parts.context);
5454
debug_kawa(kawa);
5555
if kawa.is_error() {
@@ -80,7 +80,7 @@ impl<Front: SocketHandler> ConnectionH1<Front> {
8080
}
8181
match self.position {
8282
Position::Server => {
83-
if was_initial {
83+
if !was_main_phase {
8484
self.requests += 1;
8585
println_!("REQUESTS: {}", self.requests);
8686
stream.state = StreamState::Link

lib/src/protocol/mux/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{
22
cell::RefCell,
33
collections::HashMap,
4-
io::{ErrorKind, Write},
4+
io::ErrorKind,
55
net::{Shutdown, SocketAddr},
66
rc::{Rc, Weak},
77
};

lib/src/router/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ mod tests {
937937
),
938938
Ok(Route::Cluster {
939939
id: "examplewildcard".to_string(),
940-
h2: true
940+
h2: false
941941
})
942942
);
943943
assert_eq!(

0 commit comments

Comments
 (0)