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
+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,