Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9749b32
Move mpmc sender to poll behavior struct
mehnazyunus Oct 14, 2025
e4eb9ca
Move server builder methods to macros
mehnazyunus Oct 15, 2025
75fde84
Add Unix domain socket send event
mehnazyunus Oct 14, 2025
8f4dcd4
Add helper functions to access secret
mehnazyunus Oct 14, 2025
f26c672
Add manager server functionality
mehnazyunus Oct 14, 2025
8a1a9d3
Add application server functionality
mehnazyunus Oct 14, 2025
7c8b019
Add shared cache happy path test
mehnazyunus Oct 14, 2025
ed64761
Fix clippy warnings
mehnazyunus Oct 15, 2025
4a75860
Add counter for blocked_count
mehnazyunus Oct 15, 2025
fe198e1
Decrypt packet for dedup check
mehnazyunus Oct 15, 2025
e7b29b0
Fix integration test
mehnazyunus Oct 15, 2025
a0fd7f4
Remove acceptor addr from application server
mehnazyunus Oct 16, 2025
cf206ad
Use different socket paths in test
mehnazyunus Oct 16, 2025
3821caf
Remove acceptor runtime and mpmc channel from application server
mehnazyunus Oct 16, 2025
b209b71
Add queue_time to packet
mehnazyunus Oct 16, 2025
8ea84c3
Init manager server
mehnazyunus Oct 17, 2025
6777e07
Implement manager server
mehnazyunus Oct 17, 2025
4e9967b
Use a single map across streams
mehnazyunus Oct 17, 2025
d8eca96
Make uds receiver cloneable
mehnazyunus Oct 17, 2025
da15ead
Add encode timestamp to packet
mehnazyunus Oct 20, 2025
e2122e8
Use CLOCK_MONOTONIC when not on linux
mehnazyunus Oct 20, 2025
931e875
Add event on uds receive
mehnazyunus Oct 20, 2025
2056480
Use u64 for encode time; use mut packet
mehnazyunus Oct 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dc/s2n-quic-dc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ zerocopy = { version = "0.8", features = ["derive"] }
zeroize = "1"
parking_lot = "0.12"
bitvec = { version = "1.0.1", default-features = false }
nix = {version = "0.30.1", features = ["socket", "uio", "fs"] }
nix = {version = "0.30.1", features = ["socket", "uio", "fs", "time"] }

[dev-dependencies]
bach = { version = "0.1.0", features = ["net", "tokio-compat"] }
Expand Down
49 changes: 49 additions & 0 deletions dc/s2n-quic-dc/events/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,55 @@ struct AcceptorTcpIoError<'a> {
error: &'a std::io::Error,
}

/// Emitted when the TCP stream has been sent over a Unix domain socket
#[event("acceptor:tcp:socket_sent")]
#[subject(endpoint)]
struct AcceptorTcpSocketSent<'a> {
/// The credential ID of the stream
#[snapshot("[HIDDEN]")]
credential_id: &'a [u8],

/// The ID of the stream
stream_id: u64,

/// The amount of time the TCP stream spent in the queue before being sent over Unix domain socket
#[timer("sojourn_time")]
sojourn_time: core::time::Duration,

/// The number of times the Unix domain socket was blocked on send
#[counter("blocked_count_host")]
#[measure("blocked_count_stream")]
blocked_count: usize,

/// The len of the payload sent over the Unix domain socket
#[measure("len", Bytes)]
payload_len: usize,
}

/// Emitted when a TCP stream has been received from a Unix domain socket
#[event("acceptor:tcp:socket_received")]
#[subject(endpoint)]
struct AcceptorTcpSocketReceived<'a> {
/// The address of the stream's peer
#[builder(&'a s2n_quic_core::inet::SocketAddress)]
remote_address: SocketAddress<'a>,

/// The credential ID of the stream
#[snapshot("[HIDDEN]")]
credential_id: &'a [u8],

/// The ID of the stream
stream_id: u64,

/// The amount of time taken from socket send to socket receive, including waiting if the kernel queue is full
#[timer("transfer_time")]
transfer_time: core::time::Duration,

/// The len of the payload sent over the Unix domain socket
#[measure("len", Bytes)]
payload_len: usize,
}

/// Emitted when a UDP acceptor is started
#[event("acceptor:udp:started")]
#[subject(endpoint)]
Expand Down
Loading
Loading