Skip to content

Commit 213d0e4

Browse files
dbg timers
1 parent 67236eb commit 213d0e4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

boringtun/src/noise/timers.rs

+15
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,21 @@ impl Tunn {
255255
}
256256

257257
pub fn update_timers_at<'a>(&mut self, dst: &'a mut [u8], now: Instant) -> TunnResult<'a> {
258+
tracing::debug!(send_handshake_at = ?self.timers.send_handshake_at);
259+
tracing::debug!(next_expired_session = ?self.next_expired_session());
260+
tracing::debug!(cookie_expiration = ?self.handshake.cookie_expiration());
261+
tracing::debug!(reject_after_time = ?self.timers.reject_after_time());
262+
263+
tracing::debug!(rekey_timeout = ?self.handshake.rekey_timeout());
264+
tracing::debug!(rekey_attempt_time = ?self.timers.rekey_attempt_time());
265+
266+
tracing::debug!(rekey_after_time_on_send = ?self.timers.rekey_after_time_on_send());
267+
tracing::debug!(want_handshake_since = ?self.timers.want_handshake_since);
268+
tracing::debug!(reject_after_time_on_receive = ?self.timers.reject_after_time_on_receive());
269+
tracing::debug!(rekey_after_time_without_response = ?self.timers.rekey_after_time_without_response());
270+
tracing::debug!(keepalive_after_time_without_send = ?self.timers.keepalive_after_time_without_send());
271+
tracing::debug!(next_persistent_keepalive = ?self.timers.next_persistent_keepalive());
272+
258273
if let Some(scheduled_handshake_at) = self.timers.send_handshake_at {
259274
// If we have scheduled a handshake and the deadline expired, send it immediately.
260275
if now >= scheduled_handshake_at {

0 commit comments

Comments
 (0)