Skip to content

Commit

Permalink
Update neqo-transport/src/crypto.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Thomson <[email protected]>
Signed-off-by: Lars Eggert <[email protected]>
  • Loading branch information
larseggert and martinthomson authored Jan 29, 2025
1 parent bee363b commit e7299be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions neqo-transport/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ impl Crypto {
]
})?;
if let Agent::Client(c) = &mut agent {
// Configure clients to send additional key shares to reduce the rate of HRRs.
c.send_additional_key_shares(1)?;
// Configure clients to send additional key shares to reduce the rate of HRRs
// when enabling MLKEM.
c.send_additional_key_shares(usize::from(conn_params.mlkem_enabled()))?;

// Always enable 0-RTT on the client, but the server needs
// more configuration passed to server_enable_0rtt.
Expand Down

0 comments on commit e7299be

Please sign in to comment.