From aaa609b5f0ac7f7fda635a662794484d6de8a149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sat, 23 Oct 2021 12:42:20 +0200 Subject: [PATCH] aquatic_udp: glommio: use MAX_PACKET_SIZE in network.read_requests --- aquatic_udp/src/lib/glommio/network.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aquatic_udp/src/lib/glommio/network.rs b/aquatic_udp/src/lib/glommio/network.rs index 0a87d4b..0e8edbb 100644 --- a/aquatic_udp/src/lib/glommio/network.rs +++ b/aquatic_udp/src/lib/glommio/network.rs @@ -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 {