value updates and logs

This commit is contained in:
2026-03-22 00:21:32 +07:00
parent 46e8b4ae73
commit d0576bddf3
5 changed files with 142 additions and 121 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ impl TunnelEngine {
codec: &Arc<Mutex<Codec>>,
msg: MuxMessage,
) -> Result<(), String> {
const MAX_CHUNK_SIZE: usize = 16000;
const MAX_CHUNK_SIZE: usize = 1024 * 4;
let mut data = msg.data;
let stream_id = msg.stream_id;
+3 -3
View File
@@ -4,6 +4,6 @@ pub mod engine;
pub mod handler;
pub mod muxer;
pub const TCP_BUF_SIZE: usize = 1024 * 512;
pub const UDP_BUF_SIZE: usize = 1024 * 64;
pub const MESSAGE_CHANNEL_SIZE: usize = 1024 * 16;
pub const TCP_BUF_SIZE: usize = 1024 * 32;
pub const UDP_BUF_SIZE: usize = 1024 * 8;
pub const MESSAGE_CHANNEL_SIZE: usize = 4;