- fix: no longer fail to parse packet if multiple were received in one read call

- update: max packet size to match client
This commit is contained in:
2025-01-08 12:36:27 -05:00
parent 32fe2d65a7
commit f4a421b7cb
4 changed files with 73 additions and 42 deletions

View File

@@ -2,7 +2,7 @@ use std::collections::VecDeque;
use std::sync::Arc;
use tokio::sync::{Semaphore, Mutex};
const MAX_PACKET_SIZE: usize = 1024;
const MAX_PACKET_SIZE: usize = 0xFFF;
pub struct BufferPool {
buffers: Mutex<VecDeque<Vec<u8>>>,