- 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:
@@ -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>>>,
|
||||
|
||||
Reference in New Issue
Block a user