Skip to content

Commit e88c0b3

Browse files
committed
Add extra log to see how many packets were dropped after query timeout
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
1 parent 39c01eb commit e88c0b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mycelium/src/router.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,11 @@ where
458458
/// This is called when a route query times out or when we lose a route.
459459
fn drop_queued_packets(&self, subnet: Subnet) {
460460
let packets = self.packet_queue.drop_subnet(subnet, &self.metrics);
461+
debug!(
462+
packets = packets.len(),
463+
%subnet,
464+
"Dropping pending packets for subnet"
465+
);
461466
for packet_data in packets {
462467
if let QueuedPacketData::Unencrypted(p) = packet_data {
463468
if let Err(e) = self.timeout_packet_tx.send(p) {

0 commit comments

Comments
 (0)