From 719a3d47306890f3fdc7a02bf4469ef25a76f270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9odore=20Pr=C3=A9vot?= Date: Tue, 28 Jan 2025 11:10:05 +0100 Subject: [PATCH] feat(engineio/socket): set PacketBuf size to 2 --- crates/engineioxide/src/socket.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engineioxide/src/socket.rs b/crates/engineioxide/src/socket.rs index e734733a..a78e8098 100644 --- a/crates/engineioxide/src/socket.rs +++ b/crates/engineioxide/src/socket.rs @@ -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`].