Skip to content

Commit

Permalink
Use the correct MTU for prev_path
Browse files Browse the repository at this point in the history
Co-Authored-By: Benjamin Saunders <ben.e.saunders@gmail.com>
  • Loading branch information
nemethf and Ralith committed Apr 2, 2024
1 parent 4822fd4 commit f879a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-proto/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl Connection {
SpaceId::Data,
"PATH_CHALLENGE queued without 1-RTT keys"
);
buf.reserve(self.path.current_mtu() as usize);
buf.reserve(MIN_INITIAL_SIZE as usize);

let buf_capacity = buf.capacity();

Expand Down

0 comments on commit f879a35

Please sign in to comment.