Skip to content

Commit

Permalink
fdctl: fix odd QUIC config parameters
Browse files Browse the repository at this point in the history
- Hash map sparsity of 0.0 makes no sense
- Removes stray quotas for stream types other
  than incoming unidrectional
  • Loading branch information
riptl authored and ripatel-fd committed Apr 14, 2024
1 parent 2714548 commit e52a5df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app/fdctl/run/tiles/fd_quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,18 @@ quic_limits( fd_topo_tile_t const * tile ) {
FD_QUIC_MAX_CONN_ID_PER_CONN because it cannot exceed a buffer
size determined by that constant. */
.conn_id_cnt = FD_QUIC_MAX_CONN_ID_PER_CONN,
.conn_id_sparsity = 0.0,
.conn_id_sparsity = FD_QUIC_DEFAULT_SPARSITY,
.inflight_pkt_cnt = tile->quic.max_inflight_quic_packets,
.tx_buf_sz = tile->quic.tx_buf_size,
.stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_CLIENT ] = 2,
.stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_SERVER ] = 3,
.stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_CLIENT ] = 0,
.stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_SERVER ] = 0,
.stream_cnt[ FD_QUIC_STREAM_TYPE_UNI_CLIENT ] = tile->quic.max_concurrent_streams_per_connection,
.stream_cnt[ FD_QUIC_STREAM_TYPE_UNI_SERVER ] = 4,
.initial_stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_CLIENT ] = 2,
.initial_stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_SERVER ] = 3,
.stream_cnt[ FD_QUIC_STREAM_TYPE_UNI_SERVER ] = 0,
.initial_stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_CLIENT ] = 0,
.initial_stream_cnt[ FD_QUIC_STREAM_TYPE_BIDI_SERVER ] = 0,
.initial_stream_cnt[ FD_QUIC_STREAM_TYPE_UNI_CLIENT ] = tile->quic.max_concurrent_streams_per_connection,
.initial_stream_cnt[ FD_QUIC_STREAM_TYPE_UNI_SERVER ] = 4,
.stream_sparsity = 0.0,
.initial_stream_cnt[ FD_QUIC_STREAM_TYPE_UNI_SERVER ] = 0,
.stream_sparsity = FD_QUIC_DEFAULT_SPARSITY,
.stream_pool_cnt = tile->quic.stream_pool_cnt,
};
return limits;
Expand Down

0 comments on commit e52a5df

Please sign in to comment.