fixes and upgrades. async remove, buf changes
This commit is contained in:
+1
-1
@@ -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
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user