@@ -387,7 +387,7 @@ impl Endpoint<endpoint_side::Client> {
387
387
let frame = match stream_session. read_frame ( ) . await {
388
388
Ok ( frame) => frame,
389
389
Err ( ProtoReadError :: H3 ( error_code) ) => {
390
- quic_connection. close ( varint_w2q ( error_code. to_code ( ) ) , b"" ) ;
390
+ quic_connection. close ( varint_w2q ( error_code. to_http3 ( ) ) , b"" ) ;
391
391
return Err ( ConnectingError :: ConnectionError (
392
392
ConnectionError :: local_h3_error ( error_code) ,
393
393
) ) ;
@@ -404,7 +404,7 @@ impl Endpoint<endpoint_side::Client> {
404
404
} ;
405
405
406
406
if !matches ! ( frame. kind( ) , FrameKind :: Headers ) {
407
- quic_connection. close ( varint_w2q ( ErrorCode :: FrameUnexpected . to_code ( ) ) , b"" ) ;
407
+ quic_connection. close ( varint_w2q ( ErrorCode :: FrameUnexpected . to_http3 ( ) ) , b"" ) ;
408
408
return Err ( ConnectingError :: ConnectionError (
409
409
ConnectionError :: local_h3_error ( ErrorCode :: FrameUnexpected ) ,
410
410
) ) ;
@@ -413,7 +413,7 @@ impl Endpoint<endpoint_side::Client> {
413
413
let headers = match Headers :: with_frame ( & frame) {
414
414
Ok ( headers) => headers,
415
415
Err ( error_code) => {
416
- quic_connection. close ( varint_w2q ( error_code. to_code ( ) ) , b"" ) ;
416
+ quic_connection. close ( varint_w2q ( error_code. to_http3 ( ) ) , b"" ) ;
417
417
return Err ( ConnectingError :: ConnectionError (
418
418
ConnectionError :: local_h3_error ( error_code) ,
419
419
) ) ;
@@ -423,7 +423,7 @@ impl Endpoint<endpoint_side::Client> {
423
423
let session_response = match SessionResponseProto :: try_from ( headers) {
424
424
Ok ( session_response) => session_response,
425
425
Err ( _) => {
426
- quic_connection. close ( varint_w2q ( ErrorCode :: Message . to_code ( ) ) , b"" ) ;
426
+ quic_connection. close ( varint_w2q ( ErrorCode :: Message . to_http3 ( ) ) , b"" ) ;
427
427
return Err ( ConnectingError :: ConnectionError (
428
428
ConnectionError :: local_h3_error ( ErrorCode :: Message ) ,
429
429
) ) ;
@@ -759,7 +759,7 @@ impl SessionRequest {
759
759
}
760
760
Err ( ProtoWriteError :: Stopped ) => {
761
761
self . quic_connection
762
- . close ( varint_w2q ( ErrorCode :: ClosedCriticalStream . to_code ( ) ) , b"" ) ;
762
+ . close ( varint_w2q ( ErrorCode :: ClosedCriticalStream . to_http3 ( ) ) , b"" ) ;
763
763
764
764
Err ( ConnectionError :: local_h3_error (
765
765
ErrorCode :: ClosedCriticalStream ,
0 commit comments