Skip to content

Commit db89fbd

Browse files
path is a map (#52)
* move sending path_challenge to its own function * path now is a map
1 parent b6823a7 commit db89fbd

File tree

5 files changed

+406
-238
lines changed

5 files changed

+406
-238
lines changed

quinn-proto/src/connection/datagrams.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ impl Datagrams<'_> {
7070
// We use the conservative overhead bound for any packet number, reducing the budget by at
7171
// most 3 bytes, so that PN size fluctuations don't cause users sending maximum-size
7272
// datagrams to suffer avoidable packet loss.
73-
let max_size = self.conn.path.current_mtu() as usize
73+
// // TODO(@divma): wrong call
74+
let max_size = self.conn.current_mtu() as usize
7475
- self.conn.predict_1rtt_overhead_no_pn()
7576
- Datagram::SIZE_BOUND;
7677
let limit = self

0 commit comments

Comments
 (0)