mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +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 {
|
loop {
|
||||||
match socket.recv_from(&mut buf).await {
|
match socket.recv_from(&mut buf).await {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue