aquatic_udp: glommio: use MAX_PACKET_SIZE in network.read_requests

This commit is contained in:
Joakim Frostegård 2021-10-23 12:42:20 +02:00
parent 0d39c93239
commit aaa609b5f0

View file

@ -114,7 +114,7 @@ async fn read_requests(
})()
}));
let mut buf = [0u8; 2048];
let mut buf = [0u8; MAX_PACKET_SIZE];
loop {
match socket.recv_from(&mut buf).await {