File tree Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Expand file tree Collapse file tree 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -923,7 +923,7 @@ impl Builder {
923
923
/// received for that stream will result in a connection level protocol
924
924
/// error, forcing the connection to terminate.
925
925
///
926
- /// The default value is 10 .
926
+ /// The default value is currently 50 .
927
927
///
928
928
/// # Examples
929
929
///
@@ -968,7 +968,7 @@ impl Builder {
968
968
/// received for that stream will result in a connection level protocol
969
969
/// error, forcing the connection to terminate.
970
970
///
971
- /// The default value is 30 seconds .
971
+ /// The default value is currently 1 second .
972
972
///
973
973
/// # Examples
974
974
///
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ pub type WindowSize = u32;
33
33
pub const MAX_WINDOW_SIZE : WindowSize = ( 1 << 31 ) - 1 ; // i32::MAX as u32
34
34
pub const DEFAULT_REMOTE_RESET_STREAM_MAX : usize = 20 ;
35
35
pub const DEFAULT_LOCAL_RESET_COUNT_MAX : usize = 1024 ;
36
- pub const DEFAULT_RESET_STREAM_MAX : usize = 10 ;
37
- pub const DEFAULT_RESET_STREAM_SECS : u64 = 30 ;
36
+ // RFC 9113 suggests allowing at minimum 100 streams, it seems reasonable to
37
+ // by default allow a portion of that to be remember as rest for some time.
38
+ pub const DEFAULT_RESET_STREAM_MAX : usize = 50 ;
39
+ // RFC 9113#5.4.2 suggests ~1 RTT. We don't track that closely, but use a
40
+ // reasonable guess of the average here.
41
+ pub const DEFAULT_RESET_STREAM_SECS : u64 = 1 ;
38
42
pub const DEFAULT_MAX_SEND_BUFFER_SIZE : usize = 1024 * 400 ;
Original file line number Diff line number Diff line change @@ -912,11 +912,12 @@ impl Recv {
912
912
return ;
913
913
}
914
914
915
- tracing:: trace!( "enqueue_reset_expiration; {:?}" , stream. id) ;
916
-
917
915
if counts. can_inc_num_reset_streams ( ) {
918
916
counts. inc_num_reset_streams ( ) ;
917
+ tracing:: trace!( "enqueue_reset_expiration; added {:?}" , stream. id) ;
919
918
self . pending_reset_expired . push ( stream) ;
919
+ } else {
920
+ tracing:: trace!( "enqueue_reset_expiration; dropped {:?}, over max_concurrent_reset_streams" , stream. id) ;
920
921
}
921
922
}
922
923
Original file line number Diff line number Diff line change @@ -868,7 +868,7 @@ impl Builder {
868
868
/// received for that stream will result in a connection level protocol
869
869
/// error, forcing the connection to terminate.
870
870
///
871
- /// The default value is 10 .
871
+ /// The default value is currently 50 .
872
872
///
873
873
/// # Examples
874
874
///
@@ -993,7 +993,7 @@ impl Builder {
993
993
/// received for that stream will result in a connection level protocol
994
994
/// error, forcing the connection to terminate.
995
995
///
996
- /// The default value is 30 seconds .
996
+ /// The default value is currently 1 second .
997
997
///
998
998
/// # Examples
999
999
///
You can’t perform that action at this time.
0 commit comments