Skip to content

Commit 7d09375

Browse files
authored
fix mdns INBOUND_BUFFER_SIZE to be 64k as required by UDP to avoid truncation (#515)
Co-authored-by: Tibor Klajnscek <tk@numfum.com>
1 parent cf3b7a4 commit 7d09375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdns/src/conn/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mod conn_test;
2222

2323
pub const DEFAULT_DEST_ADDR: &str = "224.0.0.251:5353";
2424

25-
const INBOUND_BUFFER_SIZE: usize = 512;
25+
const INBOUND_BUFFER_SIZE: usize = 65535;
2626
const DEFAULT_QUERY_INTERVAL: Duration = Duration::from_secs(1);
2727
const MAX_MESSAGE_RECORDS: usize = 3;
2828
const RESPONSE_TTL: u32 = 120;

0 commit comments

Comments
 (0)