Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion quic/s2n-quic-platform/src/io/testing/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl MessageTrait for Message {
let path = self.handle;
let header = datagram::Header {
path,
ecn: Default::default(),
ecn: self.ecn,
};
let payload = self.payload_mut();

Expand Down Expand Up @@ -123,6 +123,7 @@ impl MessageTrait for Message {
}

self.handle = *message.path_handle();
self.ecn = message.ecn();

Ok(len)
}
Expand Down
6 changes: 6 additions & 0 deletions quic/s2n-quic-platform/src/socket/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ mod tests {
}

replication_test!(simple_replication, crate::message::simple::Message);
replication_test!(testing_replication, crate::io::testing::message::Message);
#[cfg(s2n_quic_platform_socket_msg)]
replication_test!(msg_replication, crate::message::msg::Message);
#[cfg(s2n_quic_platform_socket_mmsg)]
Expand Down Expand Up @@ -572,6 +573,7 @@ mod tests {
}

send_recv_test!(simple_send_recv, crate::message::simple::Message);
send_recv_test!(testing_send_recv, crate::io::testing::message::Message);
#[cfg(s2n_quic_platform_socket_msg)]
send_recv_test!(msg_send_recv, crate::message::msg::Message);
#[cfg(s2n_quic_platform_socket_mmsg)]
Expand Down Expand Up @@ -618,6 +620,10 @@ mod tests {
}

consumer_modifications_test!(simple_rx_modifications, crate::message::simple::Message);
consumer_modifications_test!(
testing_rx_modifications,
crate::io::testing::message::Message
);
#[cfg(s2n_quic_platform_socket_msg)]
consumer_modifications_test!(msg_rx_modifications, crate::message::msg::Message);
#[cfg(s2n_quic_platform_socket_mmsg)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -557,8 +555,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -416,8 +414,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -425,8 +423,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -570,8 +568,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -420,8 +418,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -671,8 +669,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -667,8 +665,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=99.999ms
measure#recovery_metrics.smoothed_rtt=99.999ms
Expand Down Expand Up @@ -428,6 +426,8 @@ count#frame_sent.frame|PING=1
count#frame_sent=1
count#frame_sent.packet|HANDSHAKE=1
count#frame_sent.frame|PADDING=1
count#ecn_state_changed=1
count#ecn_state_changed.state|UNKNOWN=1
count#packet_sent=1
count#packet_sent.kind|HANDSHAKE=1
count#packet_sent.bytes.total=[REDACTED]b
Expand Down Expand Up @@ -630,8 +630,6 @@ count#frame_received.packet|INITIAL=1
count#frame_received.frame|ACK=1
count#ack_range_received=1
count#ack_range_received.packet|INITIAL=1
count#ecn_state_changed=1
count#ecn_state_changed.state|FAILED=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down Expand Up @@ -874,9 +872,6 @@ count#ack_range_sent=1
count#ack_range_sent.packet|HANDSHAKE=1
count#ack_range_sent=1
count#ack_range_sent.packet|HANDSHAKE=1
count#frame_sent=1
count#frame_sent.packet|HANDSHAKE=1
count#frame_sent.frame|PADDING=1
count#recovery_metrics=1
measure#recovery_metrics.min_rtt=100ms
measure#recovery_metrics.smoothed_rtt=100ms
Expand Down
Loading