fixes and upgrades. async remove, buf changes

This commit is contained in:
2026-04-03 11:43:03 +07:00
parent 337f191cca
commit b90083539c
9 changed files with 225 additions and 146 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ impl SessionManager {
cache_dir: String,
) -> Arc<Session> {
netrunner_logger::Logger::init(None);
netrunner_logger::Logger::global().set_level("info");
netrunner_logger::Logger::global().set_level("error");
let runtime = get_runtime();
let cancel_token = CancellationToken::new();
let session_token = cancel_token.clone();
+1 -1
View File
@@ -13,7 +13,7 @@ use tokio_util::sync::CancellationToken;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
netrunner_logger::Logger::init(None);
netrunner_logger::Logger::global().set_level("debug");
netrunner_logger::Logger::global().set_level("error");
info!("Initializing NetRunner Stack...");
let remote_address = "147.45.43.70:443".to_string();
+2 -2
View File
@@ -223,8 +223,8 @@ impl UdpConnection {
client_addr: smoltcp::wire::IpAddress,
client_port: u16,
) -> (Self, mpsc::Receiver<UdpPacketTarget>, mpsc::Sender<Bytes>) {
// Для UDP используем фиксированный буфер 512
let (core, rx_from_smol, tx_to_smol) = ConnectionCore::new(handle, 512);
let capacity = NetworkConfig::global().udp_stream_capacity;
let (core, rx_from_smol, tx_to_smol) = ConnectionCore::new(handle, capacity);
let conn = Self {
core,