File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -504,11 +504,21 @@ async fn recv_invalid_authority() {
504
504
let settings = client. assert_server_handshake ( ) . await ;
505
505
assert_default_settings ! ( settings) ;
506
506
client. send_frame ( bad_headers) . await ;
507
- client. recv_frame ( frames:: reset ( 1 ) . protocol_error ( ) ) . await ;
507
+ // grpc-uds patch: must now still be accepted
508
+ client
509
+ . recv_frame ( frames:: headers ( 1 ) . response ( 200 ) . eos ( ) )
510
+ . await ;
508
511
} ;
509
512
510
513
let srv = async move {
511
514
let mut srv = server:: handshake ( io) . await . expect ( "handshake" ) ;
515
+
516
+ // grpc-uds patch: must now still be accepted
517
+ let ( req, mut stream) = srv. next ( ) . await . unwrap ( ) . unwrap ( ) ;
518
+ assert_eq ! ( req. method( ) , & http:: Method :: GET ) ;
519
+ let rsp = http:: Response :: builder ( ) . status ( 200 ) . body ( ( ) ) . unwrap ( ) ;
520
+ stream. send_response ( rsp, true ) . unwrap ( ) ;
521
+
512
522
assert ! ( srv. next( ) . await . is_none( ) ) ;
513
523
} ;
514
524
Original file line number Diff line number Diff line change @@ -508,6 +508,7 @@ async fn recv_goaway_with_higher_last_processed_id() {
508
508
}
509
509
510
510
#[ tokio:: test]
511
+ #[ ignore = "authority validation disabled by grpc-uds" ]
511
512
async fn recv_next_stream_id_updated_by_malformed_headers ( ) {
512
513
h2_support:: trace_init!( ) ;
513
514
let ( io, mut client) = mock:: new ( ) ;
You can’t perform that action at this time.
0 commit comments