feat(server): carry reply traffic class

This commit is contained in:
Nils Andreas Svee committed 2026-08-13 20:34:42 +07:00
1 parent 68e7d18c12
commit a4a5219b9e
12 files changed
+310 -57

No files matched your search

+2 -2
View File
@@ -90,7 +90,7 @@ impl Server {
}
if let Some(reply) = self.core.handle_datagram(peer, &self.recv_buffer[..len])? {
let send = self.socket.send_to(&reply, peer);
let send = self.socket.send_to(reply.bytes(), peer);
tokio::pin!(send);
let sent = loop {
tokio::select! {
@@ -99,7 +99,7 @@ impl Server {
sent = &mut send => break sent,
}
};
if !matches!(sent, Ok(len) if len == reply.len()) {
if !matches!(sent, Ok(len) if len == reply.bytes().len()) {
continue;
}
}