Skip to content

Commit f9eaa10

Browse files
committed
refactor: changed udp max packet size from 65535 to 1496
1 parent f46df38 commit f9eaa10

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/torrust_udp_tracker/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ pub type Bytes = u64;
1212
pub type Port = u16;
1313
pub type TransactionId = i64;
1414

15-
pub const MAX_PACKET_SIZE: usize = 0xffff;
15+
pub const MAX_PACKET_SIZE: usize = 1496;
1616
pub const PROTOCOL_ID: i64 = 0x41727101980;

src/torrust_udp_tracker/server.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::future::Future;
21
use std::io::Cursor;
32
use std::net::{SocketAddr};
43
use std::sync::Arc;

0 commit comments

Comments
 (0)