We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c813740 commit 134613bCopy full SHA for 134613b
1 file changed
quinn-proto/src/connection/datagrams.rs
@@ -36,6 +36,9 @@ impl Datagrams<'_> {
36
return Err(SendDatagramError::TooLarge);
37
}
38
if drop {
39
+ if data.len() > self.conn.config.datagram_send_buffer_size {
40
+ return Err(SendDatagramError::TooLarge);
41
+ }
42
self.conn.datagrams.drop_until_send_buffer_has_space(
43
data.len(),
44
self.conn.config.datagram_send_buffer_size,
0 commit comments