File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11use std:: {
22 cell:: RefCell ,
33 collections:: HashMap ,
4- io:: { ErrorKind , Write } ,
4+ io:: ErrorKind ,
55 net:: { Shutdown , SocketAddr } ,
66 rc:: { Rc , Weak } ,
77} ;
Original file line number Diff line number Diff 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 ! (
You can’t perform that action at this time.
0 commit comments