mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_udp: glommio: use MAX_PACKET_SIZE in network.read_requests
This commit is contained in:
parent
0d39c93239
commit
aaa609b5f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue