Skip to content

Commit

Permalink
feat(engineio/socket): set PacketBuf size to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore committed Jan 28, 2025
1 parent 726fa1f commit 719a3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/engineioxide/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl Permit<'_> {
///
/// The [`PacketBuf`] stack size will impact the dynamically allocated buffer
/// of the internal mpsc channel.
pub(crate) type PacketBuf = SmallVec<[Packet; 4]>;
pub(crate) type PacketBuf = SmallVec<[Packet; 2]>;

/// A [`Socket`] represents a client connection to the server.
/// It is agnostic to the [`TransportType`].
Expand Down

0 comments on commit 719a3d4

Please sign in to comment.