Skip to content

Commit

Permalink
fix mdns INBOUND_BUFFER_SIZE to be 64k as required by UDP to avoid tr…
Browse files Browse the repository at this point in the history
…uncation (#515)

Co-authored-by: Tibor Klajnscek <[email protected]>
  • Loading branch information
tklajnscek and tklajnscek authored Dec 4, 2023
1 parent cf3b7a4 commit 7d09375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdns/src/conn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mod conn_test;

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

const INBOUND_BUFFER_SIZE: usize = 512;
const INBOUND_BUFFER_SIZE: usize = 65535;
const DEFAULT_QUERY_INTERVAL: Duration = Duration::from_secs(1);
const MAX_MESSAGE_RECORDS: usize = 3;
const RESPONSE_TTL: u32 = 120;
Expand Down

0 comments on commit 7d09375

Please sign in to comment.