Skip to content

Commit a8284ce

Browse files
author
Matthew Fisher
committed
bump buffer to 512 bytes
Signed-off-by: Matthew Fisher <[email protected]>
1 parent 1d0d35c commit a8284ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use super::{events::NetworkEvent, transport::Transport, NetworkResource};
1212

1313
pub fn client_recv_packet_system(socket: Res<UdpSocket>, mut events: EventWriter<NetworkEvent>) {
1414
loop {
15-
let mut buf = [0; 32];
15+
let mut buf = [0; 512];
1616
match socket.recv_from(&mut buf) {
1717
Ok((recv_len, address)) => {
1818
let payload = Bytes::copy_from_slice(&buf[..recv_len]);
@@ -42,7 +42,7 @@ pub fn server_recv_packet_system(
4242
mut net: ResMut<NetworkResource>,
4343
) {
4444
loop {
45-
let mut buf = [0; 32];
45+
let mut buf = [0; 512];
4646
match socket.recv_from(&mut buf) {
4747
Ok((recv_len, address)) => {
4848
let payload = Bytes::copy_from_slice(&buf[..recv_len]);

0 commit comments

Comments
 (0)