Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Decrease maximum packet size #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use naia_server_socket::find_my_ip_address;
use turbulence::{
buffer::BufferPacketPool,
message_channels::ChannelMessage,
packet::{Packet as PoolPacket, PacketPool, MAX_PACKET_LEN},
packet::{Packet as PoolPacket, PacketPool},
packet_multiplexer::{IncomingTrySendError, MuxPacketPool},
};
pub use turbulence::{
Expand All @@ -47,6 +47,9 @@ pub use transport::{Connection, ConnectionChannelsBuilder, Packet};

pub type ConnectionHandle = u32;

/// The maximum packet length supported by all platforms
const MAX_PACKET_LEN: usize = 1472;

#[derive(Debug, Hash, PartialEq, Eq, Clone, StageLabel)]
struct SendHeartbeatsStage;

Expand Down